-
docker build command: docker build -t filename .
-
docker run command: docker run -i -p 8000:8000 filename
-
Command for curl:
curl --interface YOURINTERFACE -s -X POST -F "[email protected];type=image/jpeg" http://127.0.0.1:8000/ca_tf/imageUpload/IMAGENAME.jpg
for example: curl --interface enp7s0 -s -X POST -F "file=@/home/abdul/Documents/Dsgit/ca-tf-image-classifier/test_data/iphone.jpg;type=image/jpeg" http://127.0.0.1:8000/ca_tf/imageUpload/iphone.jpg