20 lines
399 B
Docker
20 lines
399 B
Docker
####################
|
|
# - Stage: SSG
|
|
####################
|
|
FROM 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"
|