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