mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 20:15:21 +00:00
commit
01853d384a
18
Dockerfile
18
Dockerfile
@ -7,6 +7,15 @@ LABEL org.opencontainers.image.source https://github.com/serengil/deepface
|
|||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
RUN mkdir /app/deepface
|
RUN mkdir /app/deepface
|
||||||
|
|
||||||
|
# -----------------------------------
|
||||||
|
# switch to application directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# -----------------------------------
|
||||||
|
# update image os
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install ffmpeg libsm6 libxext6 -y
|
||||||
|
|
||||||
# -----------------------------------
|
# -----------------------------------
|
||||||
# Copy required files from repo into image
|
# Copy required files from repo into image
|
||||||
COPY ./deepface /app/deepface
|
COPY ./deepface /app/deepface
|
||||||
@ -18,15 +27,6 @@ COPY ./requirements.txt /app/
|
|||||||
COPY ./setup.py /app/
|
COPY ./setup.py /app/
|
||||||
COPY ./README.md /app/
|
COPY ./README.md /app/
|
||||||
|
|
||||||
# -----------------------------------
|
|
||||||
# switch to application directory
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# -----------------------------------
|
|
||||||
# update image os
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install ffmpeg libsm6 libxext6 -y
|
|
||||||
|
|
||||||
# -----------------------------------
|
# -----------------------------------
|
||||||
# if you plan to use a GPU, you should install the 'tensorflow-gpu' package
|
# 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
|
# RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org tensorflow-gpu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user