Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions amazon-2-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand All @@ -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 \
Expand Down
15 changes: 7 additions & 8 deletions amazon-2023-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand All @@ -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 \
Expand Down
17 changes: 12 additions & 5 deletions centos-stream-9-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down