Dockerfile: use yarn

This commit is contained in:
Chika 2021-12-16 12:38:36 +03:00
parent cb7f73ccd3
commit 126ca7c919

View File

@ -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