Content-Length: 276063 | pFad | http://github.com/postgresml/postgresml/commit/#start-of-content

68465D80 Fix Docker image build for Python 3.11 dependencies · postgresml/postgresml@2d2352d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgresml/postgresml/commit/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy