Dockerfile 956 B

1234567891011121314151617181920212223
  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/pytorch:21.03-py3
  7. # Update the repo
  8. RUN apt-get update -y
  9. # Install required python packages
  10. RUN pip3 install tokenizers transformers ipywidgets widgetsnbextension
  11. RUN jupyter nbextension enable --py widgetsnbextension
  12. RUN pip3 install nvtx ftfy langdetect numpy torch pandas nltk sentencepiece boto3 tqdm regex bs4 htmlmin tldextract sentence-splitter
  13. ##### TODO - From the Final Repo Changing this
  14. # TO COPY the data
  15. COPY English/ /workspace/
  16. ## Uncomment this line to run Jupyter notebook by default
  17. CMD jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/workspace/python/