-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ Reput realtime caching + upgrade to erpc:0.0.35
- Loading branch information
1 parent
5c51764
commit def39f2
Showing
3 changed files
with
61 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# Config bundler step | ||
FROM oven/bun:latest AS bundler | ||
RUN mkdir -p /temp/dev | ||
RUN mkdir -p /tmp/dev | ||
|
||
# Bundle everything in a single erpc.js file | ||
COPY . /temp/dev | ||
RUN cd /temp/dev && bun install --production | ||
RUN cd /temp/dev && bun build --outfile ./erpc.js --minify --target node --external "@erpc-cloud/*" src/index.ts | ||
COPY . /tmp/dev | ||
RUN cd /tmp/dev && bun install --production | ||
RUN cd /tmp/dev && bun build --outfile ./erpc.js --minify --target node --external "@erpc-cloud/*" src/index.ts | ||
|
||
# Final image | ||
#FROM erpc-dev AS final | ||
FROM ghcr.io/erpc/erpc@sha256:c2e09378e5b7922428e8363c577fdf063aaf3d060e79ce44f8f9006c47bc80f6 AS final | ||
FROM ghcr.io/erpc/erpc:0.0.35 AS final | ||
|
||
# Install curl, will be used for healthcheck | ||
RUN apt-get update && apt-get install -y curl | ||
|
||
# Copy the bundled config | ||
COPY --from=bundler ./temp/dev/erpc.js /root/erpc.js | ||
COPY --from=bundler ./tmp/dev/erpc.js /root/erpc.js | ||
|
||
# Run the server | ||
CMD ["./erpc-server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters