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>
This commit is contained in:
Shautvast 2026-03-26 10:33:58 +01:00
parent 652bf04ee7
commit 757e551a42

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
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