site/Containerfile
2024-07-11 16:27:34 -04:00

20 lines
284 B
Docker

FROM rust:1-slim as build
RUN cargo install mdbook \
--no-default-features \
--features search \
--vers "^0.4" \
--locked
WORKDIR /jeffa.io/
COPY . .
RUN mdbook build
FROM caddy:2-alpine
COPY Caddyfile /etc/caddy/Caddyfile
COPY --from=build /jeffa.io/book /srv