Issue: https://github.com/moby/moby/issues/35729
- Dockerfile now has an ARG for fully specifying GOLANG base image used for build
- Base image defaults to current patter
* This allows testing of alternate GOLANG environments
* Required downstream (EE) for things like FIPS testing
Signed-off-by: James Nesbitt <jnesbitt@mirantis.com>
| ... | ... |
@@ -6,8 +6,9 @@ ARG GO_VERSION=1.13.8 |
| 6 | 6 |
ARG DEBIAN_FRONTEND=noninteractive |
| 7 | 7 |
ARG VPNKIT_VERSION=0.4.0 |
| 8 | 8 |
ARG DOCKER_BUILDTAGS="apparmor seccomp selinux" |
| 9 |
+ARG GOLANG_IMAGE="golang:${GO_VERSION}-buster"
|
|
| 9 | 10 |
|
| 10 |
-FROM golang:${GO_VERSION}-buster AS base
|
|
| 11 |
+FROM ${GOLANG_IMAGE} AS base
|
|
| 11 | 12 |
RUN echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache |
| 12 | 13 |
ARG APT_MIRROR |
| 13 | 14 |
RUN sed -ri "s/(httpredir|deb).debian.org/${APT_MIRROR:-deb.debian.org}/g" /etc/apt/sources.list \
|