-
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
11 changed files
with
106 additions
and
95 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
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
Binary file not shown.
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
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,26 +1,26 @@ | ||
FROM node:20-alpine As development | ||
FROM node:20-alpine AS development | ||
|
||
WORKDIR /usr/src/app | ||
COPY --chown=node:node package*.json ./ | ||
COPY --chown=node:node --chmod=644 package*.json ./ | ||
RUN npm ci | ||
COPY --chown=node:node . . | ||
COPY --chown=node:node --chmod=644 . . | ||
USER node | ||
|
||
|
||
FROM node:20-alpine As build | ||
FROM node:20-alpine AS build | ||
|
||
WORKDIR /usr/src/app | ||
COPY --chown=node:node package*.json ./ | ||
COPY --chown=node:node --from=development /usr/src/app/node_modules ./node_modules | ||
COPY --chown=node:node --chmod=644 --from=development /usr/src/app/node_modules ./node_modules | ||
COPY --chown=node:node . . | ||
RUN npm run build | ||
ENV NODE_ENV production | ||
RUN npm ci --only=production && npm cache clean --force | ||
USER node | ||
|
||
FROM node:20-alpine As production | ||
FROM node:20-alpine AS production | ||
|
||
COPY --chown=node:node --from=build /usr/src/app/node_modules ./node_modules | ||
COPY --chown=node:node --from=build /usr/src/app/dist ./dist | ||
COPY --chown=node:node --chmod=644 --from=build /usr/src/app/node_modules ./node_modules | ||
COPY --chown=node:node --chmod=644 --from=build /usr/src/app/dist ./dist | ||
|
||
CMD [ "node", "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