Skip to content

Commit 2d2352d

Browse files
committed
Fix Docker image build for Python 3.11 dependencies
- Add deadsnakes PPA to Docker image to install Python 3.11 - Install Python 3.11 and required development packages - Remove Python 3.12 which isn't compatible with current PostgresML packages
1 parent 8563bd4 commit 2d2352d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docker/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ RUN apt update && \
99
coreutils \
1010
sudo \
1111
openssl \
12-
python3.12 \
13-
python3.12-dev \
14-
python3-pip
12+
python3-pip \
13+
software-properties-common
14+
15+
# Add deadsnakes PPA for Python 3.11
16+
RUN add-apt-repository -y ppa:deadsnakes/ppa && \
17+
apt update && \
18+
apt install -y python3.11 python3.11-dev python3.11-venv python3.11-distutils
19+
1520
RUN echo "deb [trusted=yes] https://apt.postgresml.org $(lsb_release -cs) main" > /etc/apt/sources.list.d/postgresml.list
1621
RUN echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
1722
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy