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