Update FE Dockerfile

This commit is contained in:
dx-tan 2023-12-07 17:22:47 +07:00
parent 6146741299
commit 8d250c17c0

View File

@ -13,11 +13,11 @@ USER node
###################
FROM node:16-alpine AS build
WORKDIR /app/
ENV NODE_ENV production
COPY --chown=node:node package*.json ./
COPY --chown=node:node --from=development /app/node_modules ./node_modules
COPY --chown=node:node . .
RUN npm run build
ENV NODE_ENV production
RUN npm ci --only=production && npm cache clean --force
USER node