Dockerfile 615 B

12345678910111213141516
  1. # To build the docker container, run: $ sudo docker build -t openacc-labs:latest .
  2. # To run: $ sudo docker run --rm -it --gpus=all -p 8888:8888 openacc-labs:latest
  3. # Finally, open http://127.0.0.1:8888/
  4. FROM nvcr.io/hpc/pgi-compilers:ce
  5. RUN apt update && \
  6. apt install -y --no-install-recommends python3-pip python3-setuptools nginx zip build-essential && \
  7. rm -rf /var/lib/apt/lists/* && \
  8. pip3 install --no-cache-dir jupyter
  9. ADD English/ /labs
  10. WORKDIR /labs
  11. CMD service nginx start && jupyter notebook --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/labs