# ── Build ──
FROM hugomods/hugo:latest AS builder

WORKDIR /src
COPY ./hugo/eliaskohout.de .
RUN hugo --minify

# ── Serve ──
FROM alpine:latest

WORKDIR /www
COPY --from=builder /src/public /www
RUN apk add --no-cache busybox-extras
EXPOSE 80
CMD ["httpd", "-f", "-p", "80", "-h", "/www"]
