Update FE Dockerfile
This commit is contained in:
parent
6146741299
commit
8d250c17c0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user