hugo-builder/Dockerfile
Drew Bowering 78e7aaf352
move golang container image to local repo
- Docker Hub is rate limiting us, we'll mirror it here.
2025-05-27 07:29:05 -06:00

19 lines
634 B
Docker

# Package versions
ARG GOLANG_VERSION="1.24.3"
ARG HUGO_VERSION="0.147.5"
# Build container
FROM git.brds.ca/d-b.ca/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 xzf hugo_${HUGO_VERSION}_linux-amd64.tar.gz \
&& mv hugo /usr/bin
WORKDIR /go
RUN rm -rf /go/hugo