docker: Fix apt-add-repository (#13213)
This commit is contained in:
+4
-1
@@ -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 --install /usr/bin/python3 python3 /usr/bin/python3.12 2 \
|
||||||
&& update-alternatives --set python3 /usr/bin/python3.12 \
|
&& update-alternatives --set python3 /usr/bin/python3.12 \
|
||||||
&& wget https://bootstrap.pypa.io/get-pip.py \
|
&& 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
|
# Set timezone and install all packages
|
||||||
RUN --mount=type=cache,target=/var/cache/apt echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
|
RUN --mount=type=cache,target=/var/cache/apt echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
|
||||||
|
|||||||
Reference in New Issue
Block a user