Skip to content

Commit db935e3

Browse files
committed
Simpler Dockerfile
Signed-off-by: David Gageot <[email protected]>
1 parent 1cdb15e commit db935e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ COPY src ./src
1111
RUN --mount=type=cache,target=/root/.npm npm run build
1212

1313
FROM node_base
14+
COPY package.json package-lock.json ./
1415
COPY --from=builder /app/dist ./dist
15-
COPY --from=builder /app/package.json /app/package-lock.json ./
1616
ENV NODE_ENV=production
1717
RUN --mount=type=cache,target=/root/.npm npm ci --ignore-scripts --omit-dev
1818
ENTRYPOINT ["node", "/app/dist/index.js"]

0 commit comments

Comments
 (0)