mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-24 08:35:31 +03:00
1837733e07
Change-Id: I6b77d9942324254b5312d80156f089b183a02201
18 lines
448 B
Docker
18 lines
448 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
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . /src
|
|
RUN yarn --network-timeout=300000 install --immutable
|
|
RUN yarn build
|
|
|
|
|
|
# App
|
|
FROM nginx:stable-alpine
|
|
|
|
COPY --from=builder /src/dist /app
|
|
|
|
RUN rm -rf /usr/share/nginx/html \
|
|
&& ln -s /app /usr/share/nginx/html
|