Files
jagadeeshi2iandGitHub 348cc85f53 Fix: Change folder structure (#1264)
* Fix: Change folder structure

 - move torchserve from custom to v1beta1 -> custom

* Fix: Update readme for samples

* Fix: Update readme with links and description for torchserve
2020-12-23 07:28:26 -08:00

723 B

Docker image building

Steps:

  1. Download model archive file from the model-zoo or create you own using the step provided here
  2. Copy model archive files to model-store folder
  3. Edit config.properties for requirement
  4. Run docker build
  5. 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