aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2020-05-04 12:45:36 +0200
committerJakob Borg <jakob@kastelo.net>2020-05-04 12:45:36 +0200
commit92905d30e8993980d1018d613ea7cfd0a1c45b94 (patch)
treebf62912fe66fc6650225106caeef1425fd05a798 /Dockerfile
parent914eb77ca49383f37a967cbc5363e3c332ed4fe6 (diff)
downloadsyncthing-92905d30e8993980d1018d613ea7cfd0a1c45b94.tar.gz
syncthing-92905d30e8993980d1018d613ea7cfd0a1c45b94.zip
docker: Accept Go version as --build-arg
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 75ebe709c..37076c6cb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,5 @@
-FROM golang:1.13 AS builder
+ARG GOVERSION=latest
+FROM golang:$GOVERSION AS builder
WORKDIR /src
COPY . .