Skip to content
Merged
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
14 changes: 7 additions & 7 deletions centos-stream-9-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,26 @@ RUN yum install -y \

RUN useradd --uid 1001 pillow

RUN wget --no-verbose 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 \
RUN wget --no-verbose https://www.python.org/ftp/python/3.11.15/Python-3.11.15.tgz \
&& tar xzf Python-3.11.15.tgz \
&& cd Python-3.11.15 \
&& ./configure \
&& make altinstall \
&& cd .. \
&& rm -r Python-3.10.18 Python-3.10.18.tgz
&& rm -r Python-3.11.15 Python-3.11.15.tgz

ARG PIP_DISABLE_PIP_VERSION_CHECK=1
ARG PIP_NO_CACHE_DIR=1

RUN bash -c "python3.10 -m pip install virtualenv \
&& python3.10 -m virtualenv --system-site-packages /vpy3 \
RUN bash -c "python3.11 -m pip install virtualenv \
&& python3.11 -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 ln -sf /usr/local/bin/python3.11 /usr/bin/python3
RUN /usr/bin/python3 -m pip install --no-cache-dir meson
RUN cd /depends \
&& ./install_imagequant.sh \
Expand Down
Loading