From 126ca7c919e74ad1bdcabf1fbfe010a65cd63f40 Mon Sep 17 00:00:00 2001 From: Chika Date: Thu, 16 Dec 2021 12:38:36 +0300 Subject: [PATCH] Dockerfile: use yarn --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 556fe63..260911c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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