dd71a08fe9
Change-Id: Ie4b5fa3a923cac19a3f2eeae5f6c06245d0b8cc2
22 lines
410 B
Docker
22 lines
410 B
Docker
# Builder
|
|
FROM node:lts as builder
|
|
|
|
ARG PUBLIC_URL=/
|
|
ARG REACT_APP_SERVER
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . /src
|
|
RUN yarn --network-timeout 500000 add @mui/icons-material
|
|
RUN yarn --network-timeout=100000 install
|
|
RUN PUBLIC_URL=$PUBLIC_URL REACT_APP_SERVER=$REACT_APP_SERVER yarn build
|
|
|
|
|
|
# App
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /src/build /app
|
|
|
|
RUN rm -rf /usr/share/nginx/html \
|
|
&& ln -s /app /usr/share/nginx/html
|