blog/hugo.Dockerfile
d3vyce 6ac7b6c2f9
Some checks failed
Build Hugo Docker Image / build docker (push) Failing after 21s
Build Blog Docker Image / build docker (push) Has been cancelled
bump: blowfish/hugo version
2024-04-30 23:49:11 +02:00

11 lines
237 B
Docker

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@${HUGO_VERSION}