Fix Dockerfile

Mage uses git, so we should install git before run mage.

Closes #9261
This commit is contained in:
hitzhangjie 2021-12-12 21:45:08 +08:00 committed by GitHub
parent 657d0272e3
commit 8a005538db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ COPY . /go/src/github.com/gohugoio/hugo/
# gcc/g++ are required to build SASS libraries for extended version
RUN apk update && \
apk add --no-cache gcc g++ musl-dev && \
apk add --no-cache gcc g++ musl-dev git && \
go get github.com/magefile/mage
RUN mage hugo && mage install