site-support/Dockerfile

22 lines
431 B
Docker
Raw Normal View History

2023-08-10 17:38:07 +02:00
####################
# - Stage: SSG
####################
2023-08-13 01:22:05 +02:00
FROM git.sofus.io/so-rose/docker-mdbook:0.4.34 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"