From 0dfe3f3ce0b91495af0f1867c54394ed97fa550b Mon Sep 17 00:00:00 2001 From: Drew Bowering Date: Sat, 10 May 2025 09:47:37 -0600 Subject: [PATCH] add initial Dockerfile --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d2a67c3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Package versions +ARG GOLANG_VERSION="1.24.3" +ARG HUGO_VERSION="0.147.2" + +# Build container +FROM golang:${GOLANG_VERSION} +ARG HUGO_VERSION +LABEL org.opencontainers.image.title="D-B.CA Hugo Website Builder" +LABEL org.opencontainers.image.authors="drew@brds.ca" +LABEL org.opencontainers.image.description="Image based on the standard Golang image containing Hugo." + +WORKDIR /go/hugo +RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.tar.gz \ + && tar xvvzf hugo_${HUGO_VERSION}_linux-amd64.tar.gz \ + && mv hugo /usr/bin + +WORKDIR /go +RUN rm -rf /go/hugo