Browse Source

build(docker/hugo): bump to 0.57.0

Josh Habdas 1 month ago
parent
commit
e090ab2e1e
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 10 additions and 6 deletions
  1. 10
    6
      docker/hugo/Dockerfile

+ 10
- 6
docker/hugo/Dockerfile View File

@@ -17,19 +17,23 @@
17 17
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
18 18
 #
19 19
 
20
-# DOCKER-VERSION 18.09.7-ce, build 2d0083d657
20
+# DOCKER-VERSION 19.03.1-ce, build 74b1e89e8a
21 21
 
22
-# Pull hugo builder base image
23
-FROM golang:1.11.4-alpine3.8 AS hugobuilder
22
+# Specify build image
23
+ARG GO_VERSION=1.11.4
24
+ARG BUILD_TARGET=alpine3.8
24 25
 
25
-# Set environment variables for hugo build
26
-ENV HUGO_VERSION=0.56.3 \
26
+# Pull builder base image
27
+FROM golang:${GO_VERSION}-${BUILD_TARGET} AS hugobuilder
28
+
29
+# Set environment variables
30
+ENV HUGO_VERSION=0.57.0 \
27 31
     CGO_ENABLED=1 \
28 32
     GOOS=linux \
29 33
     GO111MODULE=on \
30 34
     BUILD_TAGS="extended"
31 35
 
32
-# Build hugo from source using specified version
36
+# Build from source using specified version
33 37
 RUN \
34 38
   apk add --update --no-cache git gcc g++ binutils musl-dev && \
35 39
   git clone https://github.com/gohugoio/hugo.git $GOPATH/src/github.com/gohugoio/hugo && \

Loading…
Cancel
Save