mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-24 08:35:31 +03:00
3276a9b6ed
@mui/icons-material needs much time to install, raises the overall yarn install time and causes a timeout error Change-Id: I0327c6e0523528fb08da7e4b993fb53e9e070305
20 lines
352 B
Docker
20 lines
352 B
Docker
# 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
|
|
|
|
|
|
# App
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /src/build /app
|
|
|
|
RUN rm -rf /usr/share/nginx/html \
|
|
&& ln -s /app /usr/share/nginx/html
|