feat: add Dockerfile
Some checks are pending
/ build-and-deploy (push) Waiting to run

This commit is contained in:
Sébastien Faguet 2026-05-07 16:03:20 +02:00
parent 5babdb1ef4
commit 136703f46d
2 changed files with 10 additions and 1 deletions

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM hugomods/hugo:latest AS builder
WORKDIR /app
COPY . .
RUN cd src && hugo build
FROM nginx:alpine
COPY --from=builder /app/src/public /usr/share/nginx/html

View file

@ -26,5 +26,5 @@ where `<platform>` must be replaced by `windows`, `linux`, or `macos`.
``` ```
cd src cd src
hugo server --disableFastRender --ignoreCache hugo server --disableFastRender --ignoreCache
hgo build hugo build
``` ```