Dockerfile: use yarn
This commit is contained in:
parent
cb7f73ccd3
commit
126ca7c919
@ -1,6 +1,6 @@
|
||||
FROM node:16-alpine as builder
|
||||
|
||||
ENV REACT_APP_PRODUCTION=true
|
||||
ENV NODE_ENV=production
|
||||
ENV GENERATE_SOURCEMAP=false
|
||||
ENV DISABLE_ESLINT_PLUGIN=true
|
||||
|
||||
@ -8,11 +8,11 @@ WORKDIR /app
|
||||
|
||||
COPY package.json /app/
|
||||
|
||||
RUN npm install --only=prod
|
||||
RUN yarn install
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN npm run build
|
||||
RUN yarn build
|
||||
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
Reference in New Issue
Block a user