Dockerfile 864 B

12345678910111213141516171819202122
  1. # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
  2. # To build the docker container, run: $ sudo docker build -t openacc-labs:latest .
  3. # To run: $ sudo docker run --rm -it --gpus=all -p 8888:8888 openacc-labs:latest
  4. # Finally, open http://127.0.0.1:8888/
  5. FROM nvcr.io/nvidia/nvhpc:20.9-devel-ubuntu20.04
  6. RUN apt-get -y update && \
  7. DEBIAN_FRONTEND=noninteractive apt-get -yq install --no-install-recommends python3-pip python3-setuptools nginx zip build-essential && \
  8. rm -rf /var/lib/apt/lists/* && \
  9. pip3 install --upgrade pip
  10. RUN apt-get update -y
  11. RUN apt-get install -y git nvidia-modprobe
  12. RUN pip3 install jupyterlab
  13. # Install required python packages
  14. RUN pip3 install ipywidgets
  15. ADD English/ /labs
  16. WORKDIR /labs
  17. CMD jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/labs