synapse-admin/Dockerfile
Michael Albert 9b43d41040 Remove fixed PUBLIC_URL in Dockerfile
Change-Id: Ifb2e41f02f6568fd80fe9de4c76b633236ceffe4
2023-02-03 22:17:08 +01:00

19 lines
312 B
Docker

# Builder
FROM node:lts as builder
ARG REACT_APP_SERVER
WORKDIR /src
COPY . /src
RUN yarn --network-timeout=300000 install
RUN 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