From 1f771565a23d116bfd4f86c661cc0c5a06f19ed6 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Sun, 10 Mar 2024 12:33:40 +0000 Subject: [PATCH] valid dependency versions --- Dockerfile | 5 ++++- requirements_local.txt | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 requirements_local.txt diff --git a/Dockerfile b/Dockerfile index ebdca15..c5b5e84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # base image -FROM python:3.8 +FROM python:3.8.12 LABEL org.opencontainers.image.source https://github.com/serengil/deepface # ----------------------------------- @@ -20,6 +20,7 @@ RUN apt-get install ffmpeg libsm6 libxext6 -y # Copy required files from repo into image COPY ./deepface /app/deepface COPY ./requirements.txt /app/ +COPY ./requirements_local.txt /app/ COPY ./package_info.json /app/ COPY ./setup.py /app/ COPY ./README.md /app/ @@ -32,6 +33,8 @@ COPY ./README.md /app/ # install deepface from pypi release (might be out-of-date) # RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org deepface # ----------------------------------- +# install dependencies - deepface with these dependency versions is working +RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org -r /app/requirements_local.txt # install deepface from source code (always up-to-date) RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org -e . diff --git a/requirements_local.txt b/requirements_local.txt new file mode 100644 index 0000000..f360f20 --- /dev/null +++ b/requirements_local.txt @@ -0,0 +1,13 @@ +numpy==1.22.3 +pandas==2.0.3 +Pillow==9.0.0 +opencv-python==4.9.0.80 +tensorflow==2.7.0 +keras==2.7.0 +mtcnn +retina-face +gdown==4.2.0 +tqdm==4.66.1 +fire==0.4.0 +gunicorn==20.1.0 +Flask==2.0.2 \ No newline at end of file