Adjusted Dockerfile to include args in build process

This commit is contained in:
Leon Schmidt 2022-05-21 19:14:54 +02:00
parent 5aa90c25f7
commit b1a6d3f9d2
No known key found for this signature in database
GPG Key ID: C20651EF8C00463B

View File

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