diff --git a/Dockerfile b/Dockerfile index 3916b1a..911df26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,15 @@ LABEL org.opencontainers.image.source https://github.com/serengil/deepface RUN mkdir /app 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 ./deepface /app/deepface @@ -18,15 +27,6 @@ COPY ./requirements.txt /app/ COPY ./setup.py /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 # RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org tensorflow-gpu