Merge pull request #39537 from thaJeztah/cdn_mirror_deb_security

Dockerfile: Use APT_MIRROR for security.debian.org as well
This commit is contained in:
Sebastiaan van Stijn 2019-07-16 16:51:38 +02:00 committed by GitHub
commit 7169b2328c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,9 +27,9 @@
ARG CROSS="false"
FROM golang:1.12.7 AS base
# allow replacing httpredir or deb mirror
ARG APT_MIRROR=deb.debian.org
RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list
ARG APT_MIRROR
RUN sed -ri "s/(httpredir|deb).debian.org/${APT_MIRROR:-deb.debian.org}/g" /etc/apt/sources.list \
&& sed -ri "s/(security).debian.org/${APT_MIRROR:-security.debian.org}/g" /etc/apt/sources.list
FROM base AS criu
# Install CRIU for checkpoint/restore support