diff --git a/Dockerfile b/Dockerfile index 68fcc69..72fc7e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,20 @@ FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04 ENV DEBIAN_FRONTEND=noninteractive +# Add this BEFORE the apt-get update to handle dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ - python3.12 python3.12-venv python3.12-dev libgl1 libglib2.0-0 libxext6 git curl g++ tini \ + ca-certificates \ + curl \ + gnupg \ + && rm -rf /var/lib/apt/lists/* + +# Add deadsnakes PPA and install Python +RUN apt-get update && apt-get install -y --no-install-recommends \ + software-properties-common \ + && add-apt-repository ppa:deadsnakes/ppa -y \ + && apt-get update && apt-get install -y --no-install-recommends \ + python3.12 python3.12-venv python3.12-dev \ + libgl1 libglib2.0-0 libxext6 git g++ tini \ && rm -rf /var/lib/apt/lists/* \ && ln -sf /usr/bin/python3.12 /usr/bin/python3