fix pip stuff

This commit is contained in:
Lander Noterman 2025-02-14 08:50:08 +01:00
parent ffa0e4ef08
commit a107a09b57
2 changed files with 6 additions and 2 deletions

View File

@ -2,14 +2,16 @@
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable # https://askubuntu.com/questions/972516/debian-frontend-environment-variable
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
ARG PIP_BREAK_SYSTEM_PACKAGES=1
ARG BASE_IMAGE=debian:12 ARG BASE_IMAGE=debian:12
ARG SLIM_BASE=debian:12-slim ARG SLIM_BASE=debian:12-slim
FROM ${BASE_IMAGE} AS base FROM ${BASE_IMAGE} AS base
ARG PIP_BREAK_SYSTEM_PACKAGES
# Ensure python 3.11 is available in ubuntu-based image # Ensure python 3.11 is available in ubuntu-based image
RUN if [ -e /etc/lsb-release ]; then \ RUN if grep -iq "ubuntu" /etc/os-release; then \
apt-get update && \ apt-get update && \
apt-get install -y software-properties-common && \ apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa; \ add-apt-repository ppa:deadsnakes/ppa; \
@ -18,9 +20,10 @@ RUN if [ -e /etc/lsb-release ]; then \
FROM --platform=${BUILDPLATFORM} debian:12 AS base_host FROM --platform=${BUILDPLATFORM} debian:12 AS base_host
FROM ${SLIM_BASE} AS slim-base FROM ${SLIM_BASE} AS slim-base
ARG PIP_BREAK_SYSTEM_PACKAGES
# Ensure python 3.11 is available in ubuntu-based image # Ensure python 3.11 is available in ubuntu-based image
RUN if [ -e /etc/lsb-release ]; then \ RUN if grep -iq "ubuntu" /etc/os-release; then \
apt-get update && \ apt-get update && \
apt-get install -y software-properties-common && \ apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa; \ add-apt-repository ppa:deadsnakes/ppa; \

View File

@ -6,6 +6,7 @@ apt-get -qq update
apt-get -qq install --no-install-recommends -y \ apt-get -qq install --no-install-recommends -y \
apt-transport-https \ apt-transport-https \
ca-certificates \
gnupg \ gnupg \
wget \ wget \
lbzip2 \ lbzip2 \