-
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
1 parent
3ad1fa0
commit dc55ce3
Showing
3 changed files
with
13 additions
and
4 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,3 @@ | ||
# compiled output | ||
/dist | ||
/node_modules |
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,10 +1,16 @@ | ||
FROM node:18 | ||
|
||
FROM node:20 AS build-env | ||
WORKDIR /app/ | ||
|
||
COPY package.json yarn.lock /app/ | ||
RUN yarn install | ||
|
||
COPY ./ /app/ | ||
RUN yarn build | ||
|
||
FROM gcr.io/distroless/nodejs20-debian11 | ||
WORKDIR /app/ | ||
|
||
COPY --from=build-env /app/node_modules /app/node_modules | ||
COPY --from=build-env /app/dist /app/dist | ||
|
||
CMD ["yarn", "start"] | ||
CMD ["./dist/main.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