-
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.
- Loading branch information
Showing
15 changed files
with
488 additions
and
600 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
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 |
---|---|---|
|
@@ -24,6 +24,5 @@ | |
"engines": { | ||
"node": ">=18.14" | ||
}, | ||
"packageManager": "[email protected]", | ||
"workspaces": ["packages/*"] | ||
} |
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,11 +1,17 @@ | ||
# Base image is erpc | ||
FROM ghcr.io/erpc/erpc:0.0.24 | ||
# Config bundler step | ||
FROM oven/bun:latest AS bundler | ||
RUN mkdir -p /temp/dev | ||
|
||
# Copy the config | ||
COPY erpc.yaml /root/erpc.yaml | ||
# 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 | ||
|
||
EXPOSE 8080/tcp | ||
EXPOSE 4001/tcp | ||
# Final image | ||
FROM ghcr.io/erpc/erpc:main AS FINAL | ||
|
||
# Copy the bundled config | ||
COPY --from=bundler ./temp/dev/erpc.js /root/erpc.js | ||
|
||
# Run the server | ||
CMD ["./erpc-server"] |
Oops, something went wrong.