Refactor Dockerfile to streamline backend package installation

This commit is contained in:
2026-04-19 20:58:17 +02:00
parent 176fa5ead2
commit 4c7d38399b

View File

@@ -18,8 +18,8 @@ WORKDIR /app-new
ENV NODE_ENV=production ENV NODE_ENV=production
ENV PORT=3000 ENV PORT=3000
COPY app-new/backend/package*.json backend/ COPY app-new/backend/package*.json ./
RUN cd backend && npm install --omit=dev RUN npm ci --omit=dev
COPY --from=build /app-new/dist dist COPY --from=build /app-new/dist dist
COPY --from=build /app-new/templates templates COPY --from=build /app-new/templates templates