-
Notifications
You must be signed in to change notification settings - Fork 200
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
1 parent
2734a09
commit ff8cb5d
Showing
2 changed files
with
21 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
Dockerfile | ||
*.env | ||
*.tsbuildinfo |
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,17 @@ | ||
FROM node:20.12.2-slim AS base | ||
ARG GIT_REV | ||
ENV GIT_REV=${GIT_REV} PNPM_HOME="/pnpm" PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
FROM base AS build | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm --filter-prod=v2-hop-node... install | ||
|
||
RUN pnpm --filter=v2-hop-node... build | ||
RUN pnpm --filter=v2-hop-node deploy --prod /prod/app | ||
|
||
FROM base | ||
COPY --from=build /prod/app /prod/app | ||
WORKDIR /prod/app | ||
ENTRYPOINT ["node", "/prod/app/dist/cli/cli.js"] |