blog/Dockerfile
Shautvast 757e551a42 Add Dockerfile for self-hosted deployment
Multi-stage: Hugo builder + nginx:alpine to serve static output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 10:33:58 +01:00

9 lines
204 B
Docker

FROM hugomods/hugo:exts as builder
WORKDIR /site
COPY . .
RUN git submodule update --init --recursive && hugo --minify
FROM nginx:alpine
COPY --from=builder /site/public /usr/share/nginx/html
EXPOSE 80