-
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.
- Loading branch information
Showing
4 changed files
with
45 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Ignore all .env files in any directory or subdirectory | ||
**/.env | ||
|
||
# Ignore node_modules and dist directories in any directory or subdirectory | ||
**/node_modules | ||
**/dist | ||
|
||
**/*.md |
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 @@ | ||
# Based on example: | ||
FROM node:20-slim AS base | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
|
||
FROM base AS build | ||
COPY . /usr/src/app | ||
WORKDIR /usr/src/app | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | ||
RUN pnpm run -r build | ||
RUN pnpm deploy --filter=./apps/api --prod /prod/api | ||
|
||
# RUN pnpm deploy --filter=app2 --prod /prod/app2 | ||
|
||
FROM base AS api | ||
COPY --from=build /prod/api /prod/api | ||
WORKDIR /prod/api | ||
CMD [ "pnpm", "start" ] | ||
|
||
# FROM base AS app2 | ||
# COPY --from=build /prod/app2 /prod/app2 | ||
# WORKDIR /prod/app2 | ||
# EXPOSE 8001 | ||
# CMD [ "pnpm", "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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,5 +38,6 @@ | |
"@types/express": "4.17.17", | ||
"@types/swagger-ui-express": "4.1.6", | ||
"tsx": "4.17.0" | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha1.8c155dc114e1689d18937974f6571e0ceee66f1d" | ||
} |