mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-22 06:21:28 +00:00
df1fbbc16b
Change-Id: Ibc9b430cb79b8c05b111d3993fc3b1543853a515
19 lines
505 B
Docker
19 lines
505 B
Docker
# Builder
|
|
FROM node:lts as builder
|
|
LABEL org.opencontainers.image.url=https://github.com/Awesome-Technologies/synapse-admin org.opencontainers.image.source=https://github.com/Awesome-Technologies/synapse-admin
|
|
ARG REACT_APP_SERVER
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . /src
|
|
RUN yarn --network-timeout=300000 install --immutable
|
|
RUN REACT_APP_SERVER=$REACT_APP_SERVER yarn build
|
|
|
|
|
|
# App
|
|
FROM nginx:stable-alpine
|
|
|
|
COPY --from=builder /src/build /app
|
|
|
|
RUN rm -rf /usr/share/nginx/html \
|
|
&& ln -s /app /usr/share/nginx/html
|