add deadsnakes ppa for more recent python 3.11 in jetson images

This commit is contained in:
Lander Noterman 2025-02-13 17:08:14 +01:00
parent f8fbc68f0d
commit ffa0e4ef08

View File

@ -8,10 +8,24 @@ ARG SLIM_BASE=debian:12-slim
FROM ${BASE_IMAGE} AS base
# Ensure python 3.11 is available in ubuntu-based image
RUN if [ -e /etc/lsb-release ]; then \
apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa; \
fi
FROM --platform=${BUILDPLATFORM} debian:12 AS base_host
FROM ${SLIM_BASE} AS slim-base
# Ensure python 3.11 is available in ubuntu-based image
RUN if [ -e /etc/lsb-release ]; then \
apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa; \
fi
FROM slim-base AS wget
ARG DEBIAN_FRONTEND
RUN apt-get update \