Dockerfile 973 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From nvcr.io/nvidia/pytorch:19.04-py3
  2. RUN apt-get -y update
  3. RUN apt-get install -y python3-pip software-properties-common wget ffmpeg
  4. RUN add-apt-repository ppa:git-core/ppa
  5. RUN apt-get -y update
  6. RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
  7. RUN apt-get install -y git-lfs --allow-unauthenticated
  8. RUN git lfs install
  9. ENV GIT_WORK_TREE=/data
  10. RUN mkdir -p /root/.torch/models
  11. RUN mkdir -p /data/models
  12. RUN wget -O /root/.torch/models/vgg16_bn-6c64b313.pth https://download.pytorch.org/models/vgg16_bn-6c64b313.pth
  13. RUN wget -O /root/.torch/models/resnet34-333f7ec4.pth https://download.pytorch.org/models/resnet34-333f7ec4.pth
  14. RUN wget -O /data/models/ColorizeArtistic_gen.pth https://www.dropbox.com/s/zkehq1uwahhbc2o/ColorizeArtistic_gen.pth?dl=0
  15. ADD . /data/
  16. WORKDIR /data
  17. RUN pip install -r requirements.txt
  18. RUN cd /data/test_images && git lfs pull
  19. EXPOSE 8888
  20. ENTRYPOINT ["sh", "/data/run_notebook.sh"]