From 541bc6f4c7c5ac57137564861e6bf113ac94bf5e Mon Sep 17 00:00:00 2001 From: russoj88 Date: Fri, 10 Apr 2020 16:52:14 -0700 Subject: [PATCH] Add dockerfile for dev. --- Dockerfile.dev | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile.dev diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100644 index 0000000..259b716 --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,11 @@ +FROM golang:alpine + +# This should be mounted with docker run command +WORKDIR /src + +# Build and run hugo +ENV GO111MODULE=on +RUN go get -u github.com/gohugoio/hugo@v0.69.0 + +# Run the development server +ENTRYPOINT cd /src && hugo server