Remove fixed PUBLIC_URL in Dockerfile

Change-Id: Ifb2e41f02f6568fd80fe9de4c76b633236ceffe4
This commit is contained in:
Michael Albert
2023-02-03 22:17:08 +01:00
parent 3276a9b6ed
commit 9b43d41040
2 changed files with 2 additions and 3 deletions

View File

@@ -1,14 +1,13 @@
# Builder
FROM node:lts as builder
ARG PUBLIC_URL=/
ARG REACT_APP_SERVER
WORKDIR /src
COPY . /src
RUN yarn --network-timeout=300000 install
RUN PUBLIC_URL=$PUBLIC_URL REACT_APP_SERVER=$REACT_APP_SERVER yarn build
RUN REACT_APP_SERVER=$REACT_APP_SERVER yarn build
# App