FROM docker.io/alpine:latest as builder WORKDIR /src COPY . /src/ RUN apk add -U hugo && \ hugo --minify --environment production --config config.toml FROM docker.io/caddy:2-alpine COPY --from=builder /src/public /usr/share/caddy