add hugo build image
All checks were successful
Build Hugo Docker Image / build docker (push) Successful in 5m9s

This commit is contained in:
2024-02-11 11:28:25 +01:00
parent 52e3025a1c
commit fafc4224c8
4 changed files with 56 additions and 1 deletions

10
hugo.Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM golang:1.22-alpine AS build
ARG CGO=1
ENV CGO_ENABLED=${CGO}
ENV GOOS=linux
ENV GO111MODULE=on
RUN apk update && \
apk add --no-cache gcc musl-dev g++ git
RUN go install -tags extended github.com/gohugoio/hugo@v0.122.0