Skip to content

Commit 36be5ef

Browse files
committed
Dockerfile.test: add GOLANG_IMAGE build arg to allow overriding
This allows the base image itself to be overridden with an alternative image. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 8faacfc commit 36be5ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

contrib/Dockerfile.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
# docker build -t containerd-test --build-arg RUNC_VERSION=v1.0.0-rc94 -f Dockerfile.test ../
1212

1313
ARG GOLANG_VERSION=1.16.6
14+
ARG GOLANG_IMAGE=golang
1415

15-
FROM golang:${GOLANG_VERSION} AS golang
16+
FROM ${GOLANG_IMAGE}:${GOLANG_VERSION} AS golang
1617

1718
# Install runc
1819
FROM golang AS runc

0 commit comments

Comments
 (0)