1
0
Fork 0

mirror:// is slower and less reliable in the end

timestamps
dump_stack() 2023-02-14 05:30:28 +00:00
parent 1a952e0212
commit 063df192b4
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 0 additions and 7 deletions

View File

@ -288,13 +288,6 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
switch sk.DistroType {
case config.Ubuntu:
d += "ENV DEBIAN_FRONTEND=noninteractive\n"
if sk.DistroRelease >= "16.04" {
from := "http://.*ubuntu/"
to := "mirror://mirrors.ubuntu.com/mirrors.txt"
file := "/etc/apt/sources.list"
s := fmt.Sprintf("sed -i 's;%s;%s;' %s", from, to, file)
d += "RUN " + s + "\n"
}
d += "RUN apt-get update\n"
d += "RUN apt-get install -y build-essential libelf-dev\n"
d += "RUN apt-get install -y wget git\n"