mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-28 11:29:02 +03:00
07e7ed98b5
Change-Id: I6f60fae65f03740f26d94d9a3cc2fa2402511ca9
17 lines
261 B
Docker
17 lines
261 B
Docker
# Builder
|
|
FROM node:10-alpine as builder
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . /src
|
|
RUN yarn --network-timeout=100000 install
|
|
RUN 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
|