We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5eb06eb + 4923df2 commit 33dffd4Copy full SHA for 33dffd4
Dockerfile
@@ -1,4 +1,6 @@
1
-FROM golang:1.12.6 as dev
+ARG GO_VERSION=1.12.6
2
+
3
+FROM golang:${GO_VERSION} as dev
4
RUN apt-get update && apt-get -y install iptables \
5
protobuf-compiler
6
Makefile
@@ -36,7 +36,7 @@ all-local: build-local check-local clean
36
# builder builds the libnetworkbuild container. All wrapper targets
37
# must depend on this to ensure that the container exists.
38
builder:
39
- docker build -t ${build_image} ${dockerbuildargs}
+ docker build -t ${build_image} --build-arg=GO_VERSION ${dockerbuildargs}
40
41
build: builder
42
@echo "🐳 $@"
0 commit comments