Dockerfile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
  2. # To build the docker container, run: $ sudo docker build -t ai-science-cfd:latest --network=host .
  3. # To run: $ sudo docker run --rm -it --gpus=all -p 8888:8888 ai-science-cfd:latest
  4. # Finally, open http://127.0.0.1:8888/
  5. # Select Base Image
  6. FROM nvcr.io/nvidia/tensorflow:21.05-tf2-py3
  7. # Update the repo
  8. RUN apt-get update
  9. # Install required dependencies
  10. RUN apt-get install -y libsm6 libxext6 libxrender-dev git
  11. # Install required python packages
  12. RUN pip3 install opencv-python==4.1.2.30 pandas seaborn sklearn matplotlib scikit-fmm tqdm h5py gdown
  13. RUN pip3 install --upgrade pip
  14. RUN apt-get update -y
  15. RUN apt-get install -y git nvidia-modprobe
  16. RUN pip3 install jupyterlab
  17. # Install required python packages
  18. RUN pip3 install ipywidgets
  19. # TO COPY the data
  20. COPY English/ /workspace/
  21. #COPY English/python/jupyter_notebook/CFD /workspace/CFD/
  22. #COPY English/python/jupyter_notebook/Intro_to_DL /workspace/Intro_to_DL/
  23. #COPY English/Start_Here.ipynb /workspace/
  24. # Make a directory for Data
  25. RUN mkdir /workspace/python/jupyter_notebook/CFD/data
  26. # Copy the Python file for downloading dataset
  27. #COPY English/python/source_code/dataset.py /workspace/
  28. # This Installs All the Dataset
  29. #RUN python3 /workspace/dataset.py
  30. RUN python3 /workspace/python/source_code/dataset.py
  31. ## Uncomment this line to run Jupyter notebook by default
  32. #CMD jupyter notebook --ip 0.0.0.0 --port 8888 --allow-root
  33. CMD jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/workspace/python/jupyter_notebook/