From ec42485c6f6be546511af3757517ef580583e6d7 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Mon, 13 Feb 2023 20:05:21 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile 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