Skip to content

Commit 8a04017

Browse files
committed
fix: dockerfile command order
1 parent 968cd27 commit 8a04017

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ RUN npm run build
77

88
FROM node:22-alpine
99
WORKDIR /app
10+
ENV NODE_ENV=production
1011
COPY --from=build /app/package.json /app/package.json
1112
COPY --from=build /app/package-lock.json /app/package-lock.json
12-
COPY --from=build /app/dist /app/dist
1313
RUN npm ci --omit=dev --ignore-scripts
14-
ENV NODE_ENV=production
14+
COPY --from=build /app/dist /app/dist
1515
CMD ["node", "dist/index.js"]

0 commit comments

Comments
 (0)