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