Dockerfile: Use APT_MIRROR for security.debian.org as well
The fastly cdn mirror we're using also mirrors the debian security repository; ``` Welcome to deb.debian.org (fastly instance)! This is deb.debian.org. This service provides mirrors for the following Debian archive repositories: /debian/ /debian-debug/ /debian-ports/ /debian-security/ The server deb.debian.org does not have packages itself, but the name has SRV records in DNS that let apt in stretch and later find places. ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit c8f43b5f6f7c83cfb5570f7f013c7efaa430d285) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Conflicts: * Dockerfile (GO_VERSION value differs, and CROSS (#39010) is absent) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Upstream-commit: 6e603e957eec3a46db4d8d69c3a7946c4d2e9c59 Component: engine
This commit is contained in:
committed by
Kir Kolyshkin
parent
3cef44a1c0
commit
20fccac6f6
@ -25,9 +25,9 @@
|
||||
#
|
||||
|
||||
FROM golang:1.11.12 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
|
||||
|
||||
Reference in New Issue
Block a user