Skip to content

Commit cc2e83b

Browse files
committed
Upgraded Amazon Linux 2023 to Python 3.11
1 parent 6f11caa commit cc2e83b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

amazon-2023-amd64/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ RUN yum install -y \
1616
make \
1717
nasm \
1818
openssl-devel \
19-
python3-devel \
20-
python3-pip \
21-
python3-test \
22-
python3-tkinter \
23-
python3-virtualenv \
19+
python3.11-devel \
20+
python3.11-pip \
21+
python3.11-test \
22+
python3.11-tkinter \
2423
shadow-utils \
2524
sudo \
2625
tar \
@@ -41,8 +40,8 @@ RUN useradd --uid 1001 pillow
4140
ARG PIP_DISABLE_PIP_VERSION_CHECK=1
4241
ARG PIP_NO_CACHE_DIR=1
4342

44-
RUN bash -c "/usr/bin/pip3 install virtualenv \
45-
&& /usr/bin/python3 -mvirtualenv -p /usr/bin/python3 --system-site-packages /vpy3 \
43+
RUN bash -c "/usr/bin/python3.11 -m pip install virtualenv \
44+
&& /usr/bin/python3.11 -mvirtualenv -p /usr/bin/python3.11 --system-site-packages /vpy3 \
4645
&& /vpy3/bin/pip install --upgrade pip \
4746
&& /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout \
4847
&& /vpy3/bin/pip install numpy --only-binary=:all: || true \
@@ -52,7 +51,7 @@ ADD depends /depends
5251
RUN wget https://github.com/ninja-build/ninja/releases/download/v1.13.1/ninja-linux.zip \
5352
&& unzip ninja-linux.zip \
5453
&& mv ninja /usr/bin
55-
RUN /usr/bin/python3 -m pip install meson
54+
RUN /usr/bin/python3.11 -m pip install meson
5655
RUN cd /depends \
5756
&& ./install_imagequant.sh \
5857
&& ./install_libavif.sh \

0 commit comments

Comments
 (0)