add hugo build image
This commit is contained in:
10
hugo.Dockerfile
Normal file
10
hugo.Dockerfile
Normal 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
|
Reference in New Issue
Block a user