Dockerfile 737 B

1234567891011121314151617
  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 --no-cache-dir jupyter
  10. ADD English/ /labs
  11. WORKDIR /labs
  12. CMD service nginx start && jupyter notebook --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/labs