mirror of
https://github.com/serengil/deepface.git
synced 2025-07-21 01:10:01 +00:00
Update Dockerfile
This commit is contained in:
parent
1af08c659b
commit
ae4c86b6ee
23
Dockerfile
23
Dockerfile
@ -7,7 +7,6 @@ LABEL org.opencontainers.image.source https://github.com/serengil/deepface
|
||||
RUN mkdir /app
|
||||
RUN mkdir /app/deepface
|
||||
|
||||
|
||||
# -----------------------------------
|
||||
# switch to application directory
|
||||
WORKDIR /app
|
||||
@ -17,6 +16,17 @@ WORKDIR /app
|
||||
RUN apt-get update
|
||||
RUN apt-get install ffmpeg libsm6 libxext6 -y
|
||||
|
||||
# -----------------------------------
|
||||
# Copy required files from repo into image
|
||||
COPY ./deepface /app/deepface
|
||||
COPY ./api/app.py /app/
|
||||
COPY ./api/api.py /app/
|
||||
COPY ./api/routes.py /app/
|
||||
COPY ./api/service.py /app/
|
||||
COPY ./requirements.txt /app/
|
||||
COPY ./setup.py /app/
|
||||
COPY ./README.md /app/
|
||||
|
||||
# -----------------------------------
|
||||
# if you plan to use a GPU, you should install the 'tensorflow-gpu' package
|
||||
# RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org tensorflow-gpu
|
||||
@ -38,17 +48,6 @@ RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted
|
||||
# environment variables
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# -----------------------------------
|
||||
# Copy required files from repo into image
|
||||
COPY ./deepface /app/deepface
|
||||
COPY ./api/app.py /app/
|
||||
COPY ./api/api.py /app/
|
||||
COPY ./api/routes.py /app/
|
||||
COPY ./api/service.py /app/
|
||||
COPY ./requirements.txt /app/
|
||||
COPY ./setup.py /app/
|
||||
COPY ./README.md /app/
|
||||
|
||||
# -----------------------------------
|
||||
# run the app (re-configure port if necessary)
|
||||
EXPOSE 5000
|
||||
|
Loading…
x
Reference in New Issue
Block a user