mirror of
https://github.com/serengil/deepface.git
synced 2025-06-05 19:15:23 +00:00
valid dependency versions
This commit is contained in:
parent
e13f3cf8ad
commit
1f771565a2
@ -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 .
|
||||
|
||||
|
13
requirements_local.txt
Normal file
13
requirements_local.txt
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user