Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2d2352d

Browse filesBrowse 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
Copy full SHA for 2d2352d

File tree

1 file changed

+8
-3
lines changed
Filter options

1 file changed

+8
-3
lines changed

‎docker/Dockerfile

Copy file name to clipboardExpand all lines: docker/Dockerfile
+8-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.