forked from SnailyCAD/snaily-cadv4
-
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.
chore: single Dockerfile (SnailyCAD#1775)
Co-authored-by: Dev-CasperTheGhost <[email protected]>
- Loading branch information
Showing
10 changed files
with
78 additions
and
184 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,37 @@ | ||
FROM node:18 as base | ||
|
||
RUN npm install -g pnpm | ||
|
||
RUN pnpm config set httpTimeout 1200000 | ||
|
||
WORKDIR /snailycad | ||
|
||
COPY . ./ | ||
|
||
FROM base as deps | ||
|
||
RUN pnpm install | ||
|
||
FROM deps as api | ||
|
||
ENV NODE_ENV="production" | ||
|
||
RUN pnpm turbo run build --filter=@snailycad/api | ||
|
||
WORKDIR /snailycad/apps/api | ||
|
||
CMD ["pnpm", "start"] | ||
|
||
FROM deps as client | ||
|
||
ENV NODE_ENV="production" | ||
|
||
RUN rm -rf /snailycad/apps/client/.next | ||
|
||
RUN pnpm create-images-domain | ||
|
||
RUN pnpm turbo run build --filter=@snailycad/client | ||
|
||
WORKDIR /snailycad/apps/client | ||
|
||
CMD ["pnpm", "start"] |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.