diff --git a/amazon-2-amd64/Dockerfile b/amazon-2-amd64/Dockerfile index 73593328..55d1b724 100644 --- a/amazon-2-amd64/Dockerfile +++ b/amazon-2-amd64/Dockerfile @@ -15,10 +15,10 @@ RUN yum install -y \ libjpeg-devel \ libtiff-devel \ make \ - openssl-devel \ - sqlite-devel \ + openssl11-devel \ pth-devel \ shadow-utils \ + sqlite-devel \ sudo \ tar \ tk-devel \ @@ -36,19 +36,19 @@ ENV PATH="/root/.cargo/bin:${PATH}" RUN useradd --uid 1001 pillow -RUN wget https://www.python.org/ftp/python/3.9.16/Python-3.9.16.tgz \ - && tar xzf Python-3.9.16.tgz \ - && cd Python-3.9.16 \ +RUN wget https://www.python.org/ftp/python/3.10.18/Python-3.10.18.tgz \ + && tar xzf Python-3.10.18.tgz \ + && cd Python-3.10.18 \ && ./configure \ && make altinstall \ && cd .. \ - && rm -r Python-3.9.16 Python-3.9.16.tgz + && rm -r Python-3.10.18 Python-3.10.18.tgz ARG PIP_DISABLE_PIP_VERSION_CHECK=1 ARG PIP_NO_CACHE_DIR=1 -RUN bash -c "python3.9 -m pip install virtualenv \ - && python3.9 -m virtualenv --system-site-packages /vpy3 \ +RUN bash -c "python3.10 -m pip install virtualenv \ + && python3.10 -m virtualenv --system-site-packages /vpy3 \ && /vpy3/bin/pip install --upgrade pip \ && /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout \ && /vpy3/bin/pip install numpy --only-binary=:all: || true \ @@ -58,8 +58,8 @@ ADD depends /depends RUN wget https://github.com/ninja-build/ninja/releases/download/v1.13.1/ninja-linux.zip \ && unzip ninja-linux.zip \ && mv ninja /usr/bin -RUN python3.9 -m pip install meson -RUN ln -s /usr/local/bin/python3.9 /usr/bin/python3 +RUN python3.10 -m pip install meson +RUN ln -s /usr/local/bin/python3.10 /usr/bin/python3 RUN cd /depends \ && ./install_imagequant.sh \ && ./install_openjpeg.sh \ diff --git a/amazon-2023-amd64/Dockerfile b/amazon-2023-amd64/Dockerfile index 57b7a5a1..763cbd3b 100644 --- a/amazon-2023-amd64/Dockerfile +++ b/amazon-2023-amd64/Dockerfile @@ -16,11 +16,10 @@ RUN yum install -y \ make \ nasm \ openssl-devel \ - python3-devel \ - python3-pip \ - python3-test \ - python3-tkinter \ - python3-virtualenv \ + python3.11-devel \ + python3.11-pip \ + python3.11-test \ + python3.11-tkinter \ shadow-utils \ sudo \ tar \ @@ -41,8 +40,8 @@ RUN useradd --uid 1001 pillow ARG PIP_DISABLE_PIP_VERSION_CHECK=1 ARG PIP_NO_CACHE_DIR=1 -RUN bash -c "/usr/bin/pip3 install virtualenv \ - && /usr/bin/python3 -mvirtualenv -p /usr/bin/python3 --system-site-packages /vpy3 \ +RUN bash -c "/usr/bin/python3.11 -m pip install virtualenv \ + && /usr/bin/python3.11 -mvirtualenv -p /usr/bin/python3.11 --system-site-packages /vpy3 \ && /vpy3/bin/pip install --upgrade pip \ && /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout \ && /vpy3/bin/pip install numpy --only-binary=:all: || true \ @@ -52,7 +51,7 @@ ADD depends /depends RUN wget https://github.com/ninja-build/ninja/releases/download/v1.13.1/ninja-linux.zip \ && unzip ninja-linux.zip \ && mv ninja /usr/bin -RUN /usr/bin/python3 -m pip install meson +RUN /usr/bin/python3.11 -m pip install meson RUN cd /depends \ && ./install_imagequant.sh \ && ./install_libavif.sh \ diff --git a/centos-stream-9-amd64/Dockerfile b/centos-stream-9-amd64/Dockerfile index 34b5cbb5..ff5684eb 100644 --- a/centos-stream-9-amd64/Dockerfile +++ b/centos-stream-9-amd64/Dockerfile @@ -21,9 +21,7 @@ RUN yum install -y \ nasm \ openjpeg2-devel \ openssl-devel \ - python3-devel \ - python3-pip \ - python3-tkinter \ + sqlite-devel \ sudo \ tcl-devel \ tk-devel \ @@ -35,17 +33,26 @@ RUN yum install -y \ RUN useradd --uid 1001 pillow +RUN wget https://www.python.org/ftp/python/3.10.18/Python-3.10.18.tgz \ + && tar xzf Python-3.10.18.tgz \ + && cd Python-3.10.18 \ + && ./configure \ + && make altinstall \ + && cd .. \ + && rm -r Python-3.10.18 Python-3.10.18.tgz + ARG PIP_DISABLE_PIP_VERSION_CHECK=1 ARG PIP_NO_CACHE_DIR=1 -RUN bash -c "python3.9 -m pip install virtualenv \ - && python3.9 -m virtualenv --system-site-packages /vpy3 \ +RUN bash -c "python3.10 -m pip install virtualenv \ + && python3.10 -m virtualenv --system-site-packages /vpy3 \ && /vpy3/bin/pip install --upgrade pip \ && /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout \ && /vpy3/bin/pip install numpy --only-binary=:all: || true \ && chown -R pillow:pillow /vpy3" COPY depends /depends +RUN ln -sf /usr/local/bin/python3.10 /usr/bin/python3 RUN cd /depends \ && ./install_imagequant.sh \ && ./install_libavif.sh \