expose internal service at port 5005

This commit is contained in:
Sefik Ilkin Serengil 2024-06-02 18:54:12 +01:00
parent a8cb394b76
commit 47bdb509cd
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@ docker build -t deepface .
# docker cp ~/.deepface/weights/. <CONTAINER_ID>:/root/.deepface/weights/
# run image
docker run --net="host" deepface
# docker run --net="host" deepface
docker run -p 5005:5000 deepface
# to access the inside of docker image when it is in running status
# docker exec -it <CONTAINER_ID> /bin/sh

View File

@ -5,4 +5,4 @@ cd ../deepface/api/src
# python api.py
# run the service with gunicorn - for prod purposes
gunicorn --workers=1 --timeout=3600 --bind=0.0.0.0:5000 "app:create_app()"
gunicorn --workers=1 --timeout=3600 --bind=0.0.0.0:5005 "app:create_app()"