-
-
Notifications
You must be signed in to change notification settings - Fork 679
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
12 changed files
with
480 additions
and
789 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ node_modules | |
.dev.vars | ||
|
||
.wrangler | ||
/output |
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,20 +1,14 @@ | ||
|
||
FROM --platform=$BUILDPLATFORM node:20-alpine | ||
FROM --platform=$BUILDPLATFORM oven/bun:1.1.36-alpine | ||
|
||
RUN mkdir -p /home/node/app && chown -R node:node /home/node/app | ||
RUN mkdir -p /home/bun/app && chown -R bun:bun /home/bun/app | ||
|
||
WORKDIR /home/node/app | ||
WORKDIR /home/bun/app | ||
|
||
USER node | ||
USER bun | ||
|
||
COPY --chown=node:node build ./build | ||
COPY --chown=bun:bun output . | ||
|
||
RUN mv build/package.json . | ||
RUN bun install | ||
|
||
RUN npm install | ||
|
||
RUN npm install --include=optional sharp | ||
|
||
RUN ls | ||
|
||
CMD [ "npm", "run", "start" ] | ||
CMD [ "bun", "run", "start" ] |
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
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
Oops, something went wrong.