Add Dockerfile to deploy site

This commit is contained in:
Melora Hugues 2023-06-26 22:45:24 +02:00
parent 2b08c90749
commit fbb61ebdd1
5 changed files with 42 additions and 1 deletions

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM klakegg/hugo:ext-alpine-ci as builder
COPY . /src/
RUN hugo
FROM nginx:1.25 as dest
COPY --from=builder /src/public /usr/share/nginx/html
COPY nginx/nginx.conf /etc/nginx/nginx.conf