fix: add deadsnakes PPA for python3.10 on Ubuntu 24.04
Ubuntu 24.04 ships Python 3.12 by default. python3.10-venv/dev/distutils are not in standard repos. Must add ppa:deadsnakes/ppa in both builder and runtime stages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -7,8 +7,11 @@
|
||||
# =============================================================================
|
||||
FROM nvidia/cuda:12.9.0-devel-ubuntu24.04 AS builder
|
||||
|
||||
# Install build dependencies
|
||||
# Install build dependencies (deadsnakes PPA required for python3.10 on Ubuntu 24.04)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
software-properties-common \
|
||||
&& add-apt-repository -y ppa:deadsnakes/ppa \
|
||||
&& apt-get update && apt-get install -y --no-install-recommends \
|
||||
python3.10 python3.10-venv python3.10-dev python3.10-distutils \
|
||||
build-essential curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
@@ -68,8 +71,11 @@ ENV PYTHONUNBUFFERED=1 \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Minimal runtime dependencies (no build tools)
|
||||
# Minimal runtime dependencies (deadsnakes PPA required for python3.10 on Ubuntu 24.04)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
software-properties-common \
|
||||
&& add-apt-repository -y ppa:deadsnakes/ppa \
|
||||
&& apt-get update && apt-get install -y --no-install-recommends \
|
||||
python3.10 \
|
||||
libgl1 libglib2.0-0 libgomp1 \
|
||||
curl pandoc \
|
||||
|
||||
Reference in New Issue
Block a user