perf: merge apt install apt-transport-https into the curl/gnupg call, reducing one full apt resolver invocation

This commit is contained in:
Mingyang Li
2026-05-30 11:17:53 -07:00
parent 667735f915
commit 9535404d7b

View File

@@ -57,12 +57,9 @@ echo "brain" > /etc/hostname
# curl, ca-certificates: downloads the GPG key from packagecloud # curl, ca-certificates: downloads the GPG key from packagecloud
# gnupg, debian-archive-keyring: packagecloud verification dependency # gnupg, debian-archive-keyring: packagecloud verification dependency
# apt-transport-https: needed before we can add the HTTPS packagecloud source
DEBIAN_FRONTEND=noninteractive \ DEBIAN_FRONTEND=noninteractive \
apt install -y curl ca-certificates gnupg debian-archive-keyring apt install -y curl ca-certificates gnupg debian-archive-keyring apt-transport-https
# apt-transport-https can be installed after debian-archive-keyring being installed
DEBIAN_FRONTEND=noninteractive \
apt install -y apt-transport-https
# Install GPG key and packagecloud repository config # Install GPG key and packagecloud repository config
mkdir -p /etc/apt/keyrings mkdir -p /etc/apt/keyrings