2019-07-26 15:59:22 +00:00
|
|
|
# Builder
|
2021-11-15 20:35:23 +00:00
|
|
|
FROM node:lts as builder
|
2024-04-17 18:32:41 +00: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 12:06:04 +00:00
|
|
|
|
2019-07-26 15:59:22 +00:00
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
COPY . /src
|
2024-02-07 16:36:36 +00:00
|
|
|
RUN yarn --network-timeout=300000 install --immutable
|
2024-02-05 16:32:32 +00:00
|
|
|
RUN yarn build
|
2019-07-26 15:59:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
# App
|
2024-04-19 07:36:44 +00:00
|
|
|
FROM nginx:stable-alpine
|
2019-07-26 15:59:22 +00:00
|
|
|
|
2024-04-23 10:18:38 +00:00
|
|
|
COPY --from=builder /src/dist /app
|
2019-07-26 15:59:22 +00:00
|
|
|
|
|
|
|
RUN rm -rf /usr/share/nginx/html \
|
|
|
|
&& ln -s /app /usr/share/nginx/html
|