From 6e1b4882a8948141e40376d5eaca467537fb6c16 Mon Sep 17 00:00:00 2001 From: Junxiao Zhao Date: Sat, 11 Jan 2025 05:28:42 +0800 Subject: [PATCH] fix the issue that latest awscli doesn't support python3.6 & building wheel for opencv-python (PEP 517) runs forever --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c7d910..fcffb53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,13 +17,14 @@ RUN apt-get update && \ apt-get install -y libsm6 libxext6 libfontconfig1 libxrender1 libglib2.0-0 supervisor python-dev swig ssh libcap2-bin nano && \ mkdir -p /opt/aws && \ cd /opt/aws && \ - wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip && \ + wget "https://s3.amazonaws.com/aws-cli/awscli-bundle-1.19.0.zip" -O "awscli-bundle.zip" && \ unzip awscli-bundle.zip && \ python3 awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws && \ rm -rf awscli-bundle.zip awscli-bundle && \ + pip install --upgrade pip setuptools wheel && \ pip install -U flake8 && \ pip install -U jsonschema && \ - pip install opencv-python && \ + pip install opencv-python==4.4.0.42 && \ pip install -U flask && \ pip install -U gunicorn && \ pip install -U gevent && \