synapse-admin/Dockerfile
Manuel Stahl 1837733e07 Fix build output path
Change-Id: I6b77d9942324254b5312d80156f089b183a02201
2024-04-23 12:18:38 +02:00

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