Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728
  1. # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
  2. # To build the docker container, run: $ sudo docker build -t ai-multi-gpu:latest .
  3. # To run: $ sudo docker run --rm -it --gpus=all -p 8888:8888 -p 8000:8000 ai-multi-gpu:latest
  4. # Finally, open http://127.0.0.1:8888/
  5. # Select Base Image
  6. FROM nvcr.io/nvidia/tensorflow:21.07-tf2-py3
  7. # Update the repo
  8. RUN apt-get update -y
  9. # Install required dependencies
  10. RUN apt-get install -y git nvidia-modprobe
  11. # Install required python packages
  12. RUN pip3 install ipywidgets
  13. ##### TODO - From the Final Repo Changing this
  14. # TO COPY the data
  15. COPY English/ /workspace/
  16. # To Download Wikitext-2 dataaset
  17. RUN mkdir /workspace/python/source_code/Data
  18. RUN curl https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-2-v1.zip -o /workspace/python/source_code/Data/wikitext-2-v1.zip
  19. RUN unzip /workspace/python/source_code/Data/wikitext-2-v1.zip -d /workspace/python/source_code/Data
  20. ## Uncomment this line to run Jupyter notebook by default
  21. CMD jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/workspace/python/