docker build -t <your image name> .
docker run -p 127.0.0.1:80:80 -d <your image name>
Then use your favorite tool to connect to the end points.
curl -X POST http://127.0.0.1/image -F imageData=@some_file_name.jpg
curl -X POST http://127.0.0.1/image -H "Content-Type: application/octet-stream" --data-binary @some_file_name.jpg
POST http://127.0.0.1/url with image URL as body —
curl -X POST http://127.0.0.1/url -d '{ "url": "<test url here>" }'