From 2f9da976e4c18fa3e8d39efa0949a62495a4859e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Fri, 12 May 2023 13:25:38 +0200 Subject: [PATCH] fix: use new build process (#3757) ## About the changes This adapts the docker creation to the latest package.json changes https://github.com/Unleash/unleash/pull/3736 --- Dockerfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index d20312b7be..372906f56e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,5 @@ ARG NODE_VERSION=18-alpine -FROM --platform=$BUILDPLATFORM node:$NODE_VERSION as frontend_builder - -WORKDIR /unleash/frontend - -COPY . /unleash - -RUN yarn install --frozen-lockfile - FROM node:$NODE_VERSION as builder WORKDIR /unleash @@ -16,9 +8,9 @@ COPY . /unleash RUN yarn config set network-timeout 300000 -RUN yarn install --frozen-lockfile --ignore-scripts && yarn run build && yarn run local:package +RUN yarn install --frozen-lockfile && yarn run build && yarn run local:package -COPY --from=frontend_builder /unleash/frontend/build /unleash/build/frontend/build +RUN mkdir /unleash/build/frontend && cp -r /unleash/frontend/build /unleash/build/frontend/build WORKDIR /unleash/docker