2019-07-26 17:59:22 +02:00
|
|
|
# Builder
|
2021-11-15 14:35:23 -06:00
|
|
|
FROM node:lts as builder
|
2024-04-17 11:32:41 -07:00
|
|
|
LABEL org.opencontainers.image.url=https://github.com/Awesome-Technologies/synapse-admin org.opencontainers.image.source=https://github.com/Awesome-Technologies/synapse-admin
|
2022-05-23 14:06:04 +02:00
|
|
|
ARG REACT_APP_SERVER
|
|
|
|
|
2019-07-26 17:59:22 +02:00
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
COPY . /src
|
2024-02-07 17:36:36 +01:00
|
|
|
RUN yarn --network-timeout=300000 install --immutable
|
2023-02-03 22:17:08 +01:00
|
|
|
RUN REACT_APP_SERVER=$REACT_APP_SERVER yarn build
|
2019-07-26 17:59:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
# App
|
|
|
|
FROM nginx:alpine
|
|
|
|
|
|
|
|
COPY --from=builder /src/build /app
|
|
|
|
|
|
|
|
RUN rm -rf /usr/share/nginx/html \
|
|
|
|
&& ln -s /app /usr/share/nginx/html
|