Preparing Dockerfile for your model
This guide will help you to create Dockerfile for your model in easy steps.
1. FROM pytorch/pytorch
2. RUN apt-get update
3. RUN pip install certifi==2019.6.16 \
chardet==3.0.4 \
dominate==2.4.0 \
idna==2.8 \
numpy==1.17.1 \
Pillow==6.1.0 \
pyzmq==18.1.0 \
requests==2.22.0 \
scipy==1.3.1 \
six==1.12.0 \
torch==1.2.0 \
torchfile==0.1.0 \
torchvision==0.4.0 \
tornado==6.0.3 \
urllib3==1.25.3 \
visdom==0.1.8.8 \
websocket-client==0.56.0 \
fire
4. ENV PYTHONPATH /usr/local:/model/:$PYTHONPATH
5. WORKDIR /model
6. COPY . .Statement - 1
Statement -2
Statement -3
Statement -4
Statement -5
Statement-6
Test it yourself
Last updated