Fix docker build (#5548)

* Fix docker build

* Adjust

* Move yarn install
This commit is contained in:
Jaco 2021-06-10 09:54:42 +03:00 committed by GitHub
parent c7819ca318
commit eade0cf464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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