site-support/Dockerfile

22 lines
437 B
Docker
Raw Permalink Normal View History

2023-08-10 17:38:07 +02:00
####################
# - Stage: SSG
####################
2023-08-13 22:51:26 +02:00
FROM git.sofus.io/python-support/docker-mdbook:0.1.0 AS base
2023-08-10 17:38:07 +02:00
COPY . /src
RUN mdbook build /src --dest-dir /dist
####################
# - Stage: Serve Static Files
####################
FROM ghcr.io/static-web-server/static-web-server:2
COPY --from=base /dist /app
ENV SERVER_PORT 8787
ENV SERVER_ROOT /app
ENV SERVER_LOG_LEVEL info
USER 5020
2023-08-10 17:38:07 +02:00
LABEL maintainer="s174509@dtu.dk"