Dockerfile 664 B

123456789101112131415
  1. # To run this dockerfile you need to present port 8888 and provide a hostname.
  2. # For instance:
  3. # $ nvidia-docker run --rm -it -p "8888:8888" -e HOSTNAME=foo.example.com openacc-labs:latest
  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 docker-configs/default /etc/nginx/sites-available/default
  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