docker: Fix apt-add-repository (#13213)

This commit is contained in:
Kshiteej K
2025-11-13 18:41:29 -08:00
committed by GitHub
parent 922525ee6d
commit b5904999c0
+4 -1
View File
@@ -41,7 +41,10 @@ RUN --mount=type=cache,target=/var/cache/apt apt update && apt install wget -y &
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2 \
&& update-alternatives --set python3 /usr/bin/python3.12 \
&& wget https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py
&& python3 get-pip.py \
# Fix for `apt-add-repository`
&& cd /usr/lib/python3/dist-packages/ \
&& ln -s apt_pkg.cpython-310-*-linux-gnu.so apt_pkg.so
# Set timezone and install all packages
RUN --mount=type=cache,target=/var/cache/apt echo 'tzdata tzdata/Areas select America' | debconf-set-selections \