From eade0cf46402253aba1b4637f99aa37c22a5d32d Mon Sep 17 00:00:00 2001 From: Jaco Date: Thu, 10 Jun 2021 09:54:42 +0300 Subject: [PATCH] Fix docker build (#5548) * Fix docker build * Adjust * Move yarn install --- docker/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4c1d6d55c0..a386422cb6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,18 +2,18 @@ FROM ubuntu:18.04 as builder # Install any needed packages RUN apt-get update && \ - apt-get install --no-install-recommends -y curl git gnupg && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* + apt-get install --no-install-recommends -y curl git gnupg # install nodejs RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - -RUN apt-get install --no-install-recommends -y nodejs +RUN apt-get install --no-install-recommends -y nodejs npm && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* +RUN npm install yarn -g WORKDIR /apps COPY . . -RUN npm install yarn -g RUN yarn && NODE_ENV=production yarn build:www # ===========================================================