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
|
COPY src ./src
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Runtime stage: production deps only
|
# Runtime stage: no dev deps (this service has zero runtime deps)
|
||||||
FROM node:22-slim
|
FROM node:22-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ARG GIT_SHA=dev
|
ARG GIT_SHA=dev
|
||||||
ENV GIT_SHA=${GIT_SHA}
|
ENV GIT_SHA=${GIT_SHA}
|
||||||
COPY package.json package-lock.json ./
|
|
||||||
RUN npm ci --omit=dev
|
|
||||||
COPY --from=build /app/dist ./dist
|
COPY --from=build /app/dist ./dist
|
||||||
|
COPY package.json ./
|
||||||
USER node
|
USER node
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node", "dist/index.js"]
|
CMD ["node", "dist/index.js"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue