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:
parent
652bf04ee7
commit
757e551a42
1 changed files with 9 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
|
||||
Loading…
Add table
Reference in a new issue