Add Dockerfile

This commit is contained in:
LordMathis 2023-02-13 20:05:21 +01:00
parent b77d343666
commit ec42485c6f
1 changed files with 13 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM golang:1.20 as build
WORKDIR /app
RUN go install -tags extended github.com/gohugoio/hugo@latest
COPY . /app
RUN hugo mod get -u && \
hugo
FROM nginx:stable-alpine
COPY --from=build /app/public /usr/share/nginx/html/