mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
expose internal service at port 5005
This commit is contained in:
parent
a8cb394b76
commit
47bdb509cd
@ -17,7 +17,8 @@ docker build -t deepface .
|
|||||||
# docker cp ~/.deepface/weights/. <CONTAINER_ID>:/root/.deepface/weights/
|
# docker cp ~/.deepface/weights/. <CONTAINER_ID>:/root/.deepface/weights/
|
||||||
|
|
||||||
# run image
|
# 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
|
# to access the inside of docker image when it is in running status
|
||||||
# docker exec -it <CONTAINER_ID> /bin/sh
|
# docker exec -it <CONTAINER_ID> /bin/sh
|
||||||
|
@ -5,4 +5,4 @@ cd ../deepface/api/src
|
|||||||
# python api.py
|
# python api.py
|
||||||
|
|
||||||
# run the service with gunicorn - for prod purposes
|
# 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()"
|
Loading…
x
Reference in New Issue
Block a user