docker: reduce dependencies for non arm7, pil will have wheels

This commit is contained in:
Koushik Dutta
2023-03-20 16:19:26 -07:00
parent 88300910a2
commit 64a0f90a9a
2 changed files with 22 additions and 12 deletions

View File

@@ -51,21 +51,26 @@ RUN apt-get -y install \
python3-dev \
python3-gi \
python3-gst-1.0 \
python3-matplotlib \
python3-numpy \
python3-opencv \
python3-pil \
python3-pip \
python3-setuptools \
python3-skimage \
python3-wheel
RUN if [ "$(uname -m)" == "armhf" ]; \
then \
apt-get -y install \
python3-matplotlib \
python3-numpy \
python3-opencv \
python3-pil \
python3-skimage; \
fi
# python pip
RUN python3 -m pip install --upgrade pip
# pyvips is broken on x86 due to mismatch ffi
# https://stackoverflow.com/questions/62658237/it-seems-that-the-version-of-the-libffi-library-seen-at-runtime-is-different-fro
RUN pip install --force-reinstall --no-binary :all: cffi
RUN python3 -m pip install aiofiles debugpy typing_extensions typing psutil
RUN python3 -m pip install aiofiles debugpy typing_extensions psutil
################################################################
# End section generated from template/Dockerfile.full.header

View File

@@ -48,21 +48,26 @@ RUN apt-get -y install \
python3-dev \
python3-gi \
python3-gst-1.0 \
python3-matplotlib \
python3-numpy \
python3-opencv \
python3-pil \
python3-pip \
python3-setuptools \
python3-skimage \
python3-wheel
RUN if [ "$(uname -m)" == "armhf" ]; \
then \
apt-get -y install \
python3-matplotlib \
python3-numpy \
python3-opencv \
python3-pil \
python3-skimage; \
fi
# python pip
RUN python3 -m pip install --upgrade pip
# pyvips is broken on x86 due to mismatch ffi
# https://stackoverflow.com/questions/62658237/it-seems-that-the-version-of-the-libffi-library-seen-at-runtime-is-different-fro
RUN pip install --force-reinstall --no-binary :all: cffi
RUN python3 -m pip install aiofiles debugpy typing_extensions typing psutil
RUN python3 -m pip install aiofiles debugpy typing_extensions psutil
################################################################
# End section generated from template/Dockerfile.full.header