Compare commits
No commits in common. "99ce69ec1235caf49d474d9de691badd515199e5" and "6f9b112378432730438871efedba6d9110dad1cc" have entirely different histories.
99ce69ec12
...
6f9b112378
1 changed files with 2 additions and 3 deletions
|
|
@ -7,15 +7,14 @@ COPY tsconfig.json ./
|
|||
COPY src ./src
|
||||
RUN npm run build
|
||||
|
||||
# Runtime stage: production deps only
|
||||
# Runtime stage: no dev deps (this service has zero runtime deps)
|
||||
FROM node:22-slim
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ARG GIT_SHA=dev
|
||||
ENV GIT_SHA=${GIT_SHA}
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev
|
||||
COPY --from=build /app/dist ./dist
|
||||
COPY package.json ./
|
||||
USER node
|
||||
EXPOSE 3000
|
||||
CMD ["node", "dist/index.js"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue