Refactor Dockerfile to streamline backend package installation
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user