Fix Dockerfile

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

Closes #9261
This commit is contained in:
hitzhangjie authored and GitHub committed 2021-12-12 14:45:08 +01:00
1 parent 657d0272e3
commit 8a005538db
1 file changed
+1 -1
+1 -1
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