Steps:
- Download model archive file from the model-zoo or create you own using the step provided here
- Copy model archive files to model-store folder
- Edit config.properties for requirement
- Run docker build
- Publish the image to dockerhub repo
# For CPU:
DOCKER_BUILDKIT=1 docker build --file Dockerfile -t torchserve:latest .
# For GPU:
DOCKER_BUILDKIT=1 docker build --file Dockerfile --build-arg BASE_IMAGE=nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04 -t torchserve-gpu:latest .
docker push {username}/torchserve:latest