1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-18 00:19:49 +01:00

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
This commit is contained in:
Gastón Fournier 2023-05-12 13:25:38 +02:00 committed by GitHub
parent 64e3609867
commit 2f9da976e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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