site/Containerfile

20 lines
284 B
Plaintext
Raw Permalink Normal View History

2024-07-11 20:27:34 +00:00
FROM rust:1-slim as build
2024-06-07 00:25:02 +00:00
2024-07-11 20:27:34 +00:00
RUN cargo install mdbook \
--no-default-features \
--features search \
--vers "^0.4" \
--locked
2024-06-07 00:25:02 +00:00
2024-07-11 20:27:34 +00:00
WORKDIR /jeffa.io/
2024-06-07 00:25:02 +00:00
COPY . .
2024-07-11 20:27:34 +00:00
RUN mdbook build
2024-06-07 00:25:02 +00:00
FROM caddy:2-alpine
COPY Caddyfile /etc/caddy/Caddyfile
2024-07-11 20:27:34 +00:00
COPY --from=build /jeffa.io/book /srv