Browse code

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: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/07/16 19:16:56
Showing 1 changed files
... ...
@@ -27,9 +27,9 @@
27 27
 ARG CROSS="false"
28 28
 
29 29
 FROM golang:1.12.7 AS base
30
-# allow replacing httpredir or deb mirror
31
-ARG APT_MIRROR=deb.debian.org
32
-RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list
30
+ARG APT_MIRROR
31
+RUN sed -ri "s/(httpredir|deb).debian.org/${APT_MIRROR:-deb.debian.org}/g" /etc/apt/sources.list \
32
+ && sed -ri "s/(security).debian.org/${APT_MIRROR:-security.debian.org}/g" /etc/apt/sources.list
33 33
 
34 34
 FROM base AS criu
35 35
 # Install CRIU for checkpoint/restore support