- Run docker compose up.
- Wait like 5-6 minutes because it takes a longgg time to initially download everthing
- Check docker ps. You should have two services running
- Confirm healthcheck by running
curl 0.0.0.0:4000/v1/healthcheck
- Copy the file into the docker go container with
docker cp ./classifier/image.jpg [container-id]:/app/image.jpg
curl -X GET 0.0.0.0:4000/v1/classifier -H 'Content-Type: application/json' -d '{"imgurl": "image.jpg"}'
- Run the inference part with the above command, this should theoretically work but this crashed my docker so I'm guessing my laptop is not meant to run classifiers. Or maybe the command is wrong. This is why it's untested.