diff options
author | Anthony Fok <[email protected]> | 2022-03-21 10:25:12 -0600 |
---|---|---|
committer | Anthony Fok <[email protected]> | 2022-03-21 21:01:24 -0600 |
commit | 8309a2b1c12009fffb1da574b4d19715f8566683 (patch) | |
tree | 4e41250df94f538bd14eb6597f1dda4a4b895324 /Dockerfile | |
parent | 2b7231097f17429e46995266870ba80540ba947d (diff) | |
download | hugo-8309a2b1c12009fffb1da574b4d19715f8566683.tar.gz hugo-8309a2b1c12009fffb1da574b4d19715f8566683.zip |
Dockerfile: Make it build with Go 1.18
Diffstat (limited to 'Dockerfile')
-rwxr-xr-x | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile index fcae03f54..885809fab 100755 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Twitter: https://twitter.com/gohugoio # Website: https://gohugo.io/ -FROM golang:1.16-alpine AS build +FROM golang:1.18-alpine AS build # Optionally set HUGO_BUILD_TAGS to "extended" or "nodeploy" when building like so: # docker build --build-arg HUGO_BUILD_TAGS=extended . @@ -20,7 +20,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 git && \ - go get github.com/magefile/mage + go install github.com/magefile/mage RUN mage hugo && mage install |