Fix docker-base-bookworm build (#17795)
* Add missing pip.conf for docker-base-bookworm Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This commit is contained in:
parent
3da08d340c
commit
96ae68fedf
@ -1,9 +1,9 @@
|
|||||||
{% set prefix = DEFAULT_CONTAINER_REGISTRY %}
|
{% set prefix = DEFAULT_CONTAINER_REGISTRY %}
|
||||||
{% from "dockers/dockerfile-macros.j2" import install_debian_packages, install_python_wheels, copy_files %}
|
{% from "dockers/dockerfile-macros.j2" import install_debian_packages, install_python_wheels, copy_files %}
|
||||||
{% if CONFIGURED_ARCH == "armhf" and (MULTIARCH_QEMU_ENVIRON == "y" or CROSS_BUILD_ENVIRON == "y") %}
|
{% if CONFIGURED_ARCH == "armhf" and (MULTIARCH_QEMU_ENVIRON == "y" or CROSS_BUILD_ENVIRON == "y") %}
|
||||||
FROM {{ prefix }}multiarch/debian-debootstrap:armhf-bookworm
|
FROM --platform=linux/arm/v7 {{ prefix }}debian:bookworm
|
||||||
{% elif CONFIGURED_ARCH == "arm64" and (MULTIARCH_QEMU_ENVIRON == "y" or CROSS_BUILD_ENVIRON == "y") %}
|
{% elif CONFIGURED_ARCH == "arm64" and (MULTIARCH_QEMU_ENVIRON == "y" or CROSS_BUILD_ENVIRON == "y") %}
|
||||||
FROM {{ prefix }}multiarch/debian-debootstrap:arm64-bookworm
|
FROM --platform=linux/arm64 {{ prefix }}debian:bookworm
|
||||||
{% else %}
|
{% else %}
|
||||||
FROM {{ prefix }}{{DOCKER_BASE_ARCH}}/debian:bookworm
|
FROM {{ prefix }}{{DOCKER_BASE_ARCH}}/debian:bookworm
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -30,7 +30,6 @@ COPY ["dpkg_01_drop", "/etc/dpkg/dpkg.cfg.d/01_drop"]
|
|||||||
COPY ["sources.list.{{ CONFIGURED_ARCH }}", "/etc/apt/sources.list"]
|
COPY ["sources.list.{{ CONFIGURED_ARCH }}", "/etc/apt/sources.list"]
|
||||||
COPY ["no_install_recommend_suggest", "/etc/apt/apt.conf.d"]
|
COPY ["no_install_recommend_suggest", "/etc/apt/apt.conf.d"]
|
||||||
COPY ["no-check-valid-until", "/etc/apt/apt.conf.d"]
|
COPY ["no-check-valid-until", "/etc/apt/apt.conf.d"]
|
||||||
COPY ["apt-multiple-retries", "/etc/apt/apt.conf.d"]
|
|
||||||
|
|
||||||
# Update apt cache and
|
# Update apt cache and
|
||||||
# pre-install fundamental packages
|
# pre-install fundamental packages
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
# Instruct apt to retry downloads on failures
|
|
||||||
# This is required only for bullseye.
|
|
||||||
|
|
||||||
Acquire::Retries "3";
|
|
2
dockers/docker-base-bookworm/pip.conf
Normal file
2
dockers/docker-base-bookworm/pip.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[global]
|
||||||
|
break-system-packages = true
|
Loading…
Reference in New Issue
Block a user