Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit2d2352d

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 parent8563bd4 commit2d2352d

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)

[8]ページ先頭

©2009-2025 Movatter.jp