diff --git a/images/build/cross/default/Dockerfile b/images/build/cross/default/Dockerfile index 4435b961ecf..124f2412a56 100644 --- a/images/build/cross/default/Dockerfile +++ b/images/build/cross/default/Dockerfile @@ -76,26 +76,20 @@ RUN apt-get -q update \ # To install crossbuild essential for other architectures add the following repository. RUN targetArch=$(echo $TARGETPLATFORM | cut -f2 -d '/') \ && if [ ${targetArch} = "amd64" ]; then \ - echo "deb http://archive.ubuntu.com/ubuntu xenial main universe" > /etc/apt/sources.list.d/cgocrosscompiling.list \ - && apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 3B4FE6ACC0B21F32 \ - && apt-get update \ + apt-get update \ && apt-get install -y build-essential mingw-w64 \ && for platform in ${KUBE_DYNAMIC_CROSSPLATFORMS}; do apt-get install -y crossbuild-essential-${platform}; done \ fi RUN targetArch=$(echo $TARGETPLATFORM | cut -f2 -d '/') \ && if [ ${targetArch} = "arm64" ]; then \ - echo "deb http://ports.ubuntu.com/ubuntu-ports/ xenial main" > /etc/apt/sources.list.d/ports.list \ - && apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 3B4FE6ACC0B21F32 \ - && apt-get update \ + apt-get update \ && apt-get install -y build-essential gcc-x86-64-linux-gnu; \ fi RUN targetArch=$(echo $TARGETPLATFORM | cut -f2 -d '/') \ && if [ ${targetArch} = "ppc64le" ] || [ ${targetArch} = "s390x" ]; then \ - echo "deb http://ports.ubuntu.com/ubuntu-ports/ xenial main" > /etc/apt/sources.list.d/ports.list \ - && apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 3B4FE6ACC0B21F32 \ - && apt-get update \ + apt-get update \ && apt-get install -y build-essential; \ fi