forked from webstudio-is/webstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from platacard/compose-docker-build
Compose docker build
- Loading branch information
Showing
6 changed files
with
210 additions
and
690 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM node:22.13.1-alpine AS base | ||
|
||
WORKDIR /app | ||
# note: all these files need because of pnpm workspace | ||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
COPY packages ./packages | ||
COPY patches ./patches | ||
|
||
COPY apps/builder/build ./apps/builder/build | ||
COPY apps/builder/package.json ./apps/builder/package.json | ||
|
||
FROM base AS prod-deps | ||
RUN npm i -g [email protected] | ||
RUN pnpm i --prod --frozen-lockfile --filter @webstudio-is/builder | ||
|
||
FROM node:22.13.1-alpine | ||
WORKDIR /app/apps/builder | ||
|
||
COPY --from=base /app/apps/builder/build ./build | ||
|
||
COPY --from=prod-deps /app/node_modules ../../node_modules | ||
COPY --from=prod-deps /app/apps/builder/node_modules ./node_modules | ||
|
||
EXPOSE 13100 | ||
CMD ["npx", "remix-serve", "build/server/index.js"] |
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.