mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-12-18 05:51:50 +03:00
ae7f6e18e5
Fixes #347 Change-Id: I1b8423f9cef46a425c1ec7665c8285af10c56df6
19 lines
324 B
Docker
19 lines
324 B
Docker
# Builder
|
|
FROM node:lts as builder
|
|
|
|
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:alpine
|
|
|
|
COPY --from=builder /src/build /app
|
|
|
|
RUN rm -rf /usr/share/nginx/html \
|
|
&& ln -s /app /usr/share/nginx/html
|