diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5d409bd --- /dev/null +++ b/Dockerfile @@ -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/ \ No newline at end of file