site-support/Dockerfile

20 lines
420 B
Docker

####################
# - Stage: SSG
####################
FROM git.sofus.io/so-rose/docker-mdbook:0.4.34 AS base
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
LABEL maintainer="s174509@dtu.dk"