Spaces:
Runtime error
Runtime error
File size: 595 Bytes
b50f432 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# Dockerfile is in the root
cd ..
# start docker
# sudo service docker start
# list current docker packages
# docker container ls -a
# delete existing deepface packages
# docker rm -f $(docker ps -a -q --filter "ancestor=deepface")
# build deepface image
docker build -t deepface .
# copy weights from your local
# docker cp ~/.deepface/weights/. <CONTAINER_ID>:/root/.deepface/weights/
# run image
docker run --net="host" deepface
# to access the inside of docker image when it is in running status
# docker exec -it <CONTAINER_ID> /bin/sh
# healthcheck
# sleep 3s
# curl localhost:5000 |