diff --git a/centos-7-amd64/Dockerfile b/centos-7-amd64/Dockerfile index 52b4cf77..b353045d 100644 --- a/centos-7-amd64/Dockerfile +++ b/centos-7-amd64/Dockerfile @@ -1,6 +1,6 @@ FROM centos:7 -RUN yum install -y epel-release centos-release-scl \ +RUN yum install -y epel-release \ && yum clean all RUN yum install -y \ @@ -16,12 +16,13 @@ RUN yum install -y \ libwebp-devel \ make \ openjpeg2-devel \ - rh-python36 \ - rh-python36-python-virtualenv \ + openssl-devel \ + sqlite-devel \ sudo \ tcl-devel \ tk-devel \ tkinter \ + wget \ which \ xorg-x11-server-Xvfb \ zlib-devel \ @@ -29,13 +30,19 @@ RUN yum install -y \ RUN useradd --uid 1000 pillow -RUN bash -c "source /opt/rh/rh-python36/enable \ - && /opt/rh/rh-python36/root/usr/bin/virtualenv -p python3.6 --system-site-packages /vpy3 \ +RUN wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz \ + && tar xzf Python-3.9.7.tgz \ + && cd Python-3.9.7 \ + && ./configure \ + && make altinstall \ + && cd .. \ + && rm -r Python-3.9.7 Python-3.9.7.tgz + +RUN bash -c "python3.9 -m pip install virtualenv \ + && python3.9 -m virtualenv --system-site-packages /vpy3 \ && /vpy3/bin/pip install --no-cache-dir --upgrade pip \ && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \ && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \ - && cat /opt/rh/rh-python36/enable /vpy3/bin/activate > /vpy3/bin/activate3.6 \ - && mv /vpy3/bin/activate3.6 /vpy3/bin/activate \ && chown -R pillow:pillow /vpy3" ADD depends /depends diff --git a/centos-8-amd64/Dockerfile b/centos-8-amd64/Dockerfile index 8c25e301..70507a28 100644 --- a/centos-8-amd64/Dockerfile +++ b/centos-8-amd64/Dockerfile @@ -21,12 +21,12 @@ RUN yum install -y \ libwebp-devel \ make \ openjpeg2-devel \ - python3 \ - python3-tkinter \ - python3-virtualenv \ + openssl-devel \ + sqlite-devel \ sudo \ tcl-devel \ tk-devel \ + wget \ which \ xorg-x11-server-Xvfb \ zlib-devel \ @@ -34,7 +34,16 @@ RUN yum install -y \ RUN useradd --uid 1000 pillow -RUN bash -c "/usr/bin/virtualenv -p python3.6 --system-site-packages /vpy3 \ +RUN wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz \ + && tar xzf Python-3.9.7.tgz \ + && cd Python-3.9.7 \ + && ./configure \ + && make altinstall \ + && cd .. \ + && rm -r Python-3.9.7 Python-3.9.7.tgz + +RUN bash -c "python3.9 -m pip install virtualenv \ + && python3.9 -m virtualenv --system-site-packages /vpy3 \ && /vpy3/bin/pip install --no-cache-dir --upgrade pip \ && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \ && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \ diff --git a/centos-stream-8-amd64/Dockerfile b/centos-stream-8-amd64/Dockerfile index ff510b0e..27d8e220 100644 --- a/centos-stream-8-amd64/Dockerfile +++ b/centos-stream-8-amd64/Dockerfile @@ -21,11 +21,11 @@ RUN yum install -y \ libwebp-devel \ make \ openjpeg2-devel \ - python3 \ - python3-tkinter \ - python3-virtualenv \ + openssl-devel \ + sqlite-devel \ tcl-devel \ tk-devel \ + wget \ which \ xorg-x11-server-Xvfb \ zlib-devel \ @@ -33,7 +33,16 @@ RUN yum install -y \ RUN useradd --uid 1000 pillow -RUN bash -c "/usr/bin/virtualenv -p python3.6 --system-site-packages /vpy3 \ +RUN wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz \ + && tar xzf Python-3.9.7.tgz \ + && cd Python-3.9.7 \ + && ./configure \ + && make altinstall \ + && cd .. \ + && rm -r Python-3.9.7 Python-3.9.7.tgz + +RUN bash -c "python3.9 -m pip install virtualenv \ + && python3.9 -m virtualenv --system-site-packages /vpy3 \ && /vpy3/bin/pip install --no-cache-dir --upgrade pip \ && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \ && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \ diff --git a/ubuntu-18.04-bionic-amd64/Dockerfile b/ubuntu-18.04-bionic-amd64/Dockerfile index aea486f4..4554dc5e 100644 --- a/ubuntu-18.04-bionic-amd64/Dockerfile +++ b/ubuntu-18.04-bionic-amd64/Dockerfile @@ -12,18 +12,14 @@ RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install \ libjpeg8-dev \ liblcms2-dev \ libopenjp2-7-dev \ + libssl-dev \ + libsqlite3-dev \ libtiff5-dev \ libwebp-dev \ netpbm \ - python3-dev \ - python3-numpy \ - python3-scipy \ - python3-setuptools \ - python3-tk \ sudo \ tcl8.6-dev \ tk8.6-dev \ - virtualenv \ wget \ xvfb \ zlib1g-dev \ @@ -34,9 +30,18 @@ RUN useradd pillow \ && mkdir /home/pillow \ && chown pillow:pillow /home/pillow -RUN virtualenv -p /usr/bin/python3.6 --system-site-packages /vpy3 \ +RUN wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz \ + && tar xzf Python-3.9.7.tgz \ + && cd Python-3.9.7 \ + && ./configure \ + && make altinstall \ + && cd .. \ + && rm -r Python-3.9.7 Python-3.9.7.tgz + +RUN python3.9 -m pip install virtualenv \ + && python3.9 -m virtualenv --system-site-packages /vpy3 \ && /vpy3/bin/pip install --no-cache-dir --upgrade pip \ - && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \ + && /vpy3/bin/pip install --no-cache-dir cffi numpy olefile pytest pytest-cov pytest-timeout \ && chown -R pillow:pillow /vpy3 ADD depends /depends