From 3a1fc21e72d6c0bfa8fb94f9be90b1c98a699067 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 26 Mar 2022 16:13:53 +0100 Subject: [PATCH] Dockerfile: use xx-apt-get instead of xx-apt The `apt` command is meant to provide a user-friendly interface, but does not have a stable interface, and not recommended for scripting, see: #54 [linux/amd64 build-buster 1/1] RUN xx-apt install --no-install-recommends -y libc6-dev libgcc-8-dev #54 0.706 Hit:1 http://security.debian.org/debian-security buster/updates InRelease #54 0.707 Hit:2 http://deb.debian.org/debian buster InRelease #54 0.708 Hit:3 http://deb.debian.org/debian buster-updates InRelease #54 2.149 Reading package lists... #54 4.917 + apt install --no-install-recommends -y libc6-dev libgcc-8-dev #54 4.934 #54 4.934 WARNING: apt does not have a stable CLI interface. Use with caution in scripts. This changes the command to use `apt-get` instead Signed-off-by: Sebastiaan van Stijn --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 63d351c2cb..23eb86bc65 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,7 @@ WORKDIR /go/src/github.com/docker/cli FROM build-base-buster AS build-buster ARG TARGETPLATFORM -RUN xx-apt install --no-install-recommends -y libc6-dev libgcc-8-dev +RUN xx-apt-get install --no-install-recommends -y libc6-dev libgcc-8-dev FROM build-base-${BASE_VARIANT} AS goversioninfo ARG GOVERSIONINFO_VERSION