The Dockerfile follows the instructions in the README.md file, whereby it was necessary to build each of the modules as part of the creation of the Docker image.
Here the steps how to build the Docker image 'similar-images':
- Export your Github access token as environment variable:
export GH_USER=youruserhere;export GH_TOKEN=yourtokenhere
- Clone the repo:
git clone git@github.com:redislabs-training/similar-images.git
- Change the directory to the the just cloned repo:
cd similar-images
- Run a Docker build:
docker build --build-arg GH_USER --build-arg GH_TOKEN -t similar-images .
- Start the image:
docker run -p 5000:5000 similar-images
- Test it with a random image: http://localhost:5000/similar-skus?imageUrl=https://drive.google.com/uc?id=1s21uQxKQjB7CuU-svW2P0eYKsHgO6hfR