mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Update Dockerfile
reorder Dockerfile build command to improve the docker build cache layer
This commit is contained in:
parent
6d97917136
commit
1af08c659b
21
Dockerfile
21
Dockerfile
@ -7,16 +7,6 @@ LABEL org.opencontainers.image.source https://github.com/serengil/deepface
|
||||
RUN mkdir /app
|
||||
RUN mkdir /app/deepface
|
||||
|
||||
# -----------------------------------
|
||||
# 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/
|
||||
|
||||
# -----------------------------------
|
||||
# switch to application directory
|
||||
@ -48,6 +38,17 @@ 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