You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.3KB

  1. FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04
  2. MAINTAINER Bradlee Speice
  3. LABEL Description="Jupyter server setup for ECBM E4040 Neural Networks" Version="0.3"
  4. # Update our cache first
  5. RUN apt-get update && \
  6. # Install packages needed for a sane linux system
  7. apt-get install -y git && \
  8. # Don't install broken Pip
  9. apt-get install -y python-pip=8.1.1-2 python3-pip=8.1.1-2 python-pip-whl=8.1.1-2 && \
  10. # Install the Scipy stuff we need
  11. apt-get install -y \
  12. python3 libpython3-dev \
  13. python-pandas python-matplotlib python-sklearn python-pyodbc \
  14. python3-pandas python3-matplotlib python3-sklearn python3-pyodbc \
  15. texlive-latex-extra texlive-fonts-recommended texlive-generic-recommended pandoc
  16. # And the python-specific tools
  17. RUN pip install theano jupyter librosa mir_eval && \
  18. pip3 install theano jupyter librosa mir_eval && \
  19. ipython2 kernel install
  20. # And the startup script
  21. COPY . /
  22. # Set up Theano for the GPU
  23. ENV THEANO_FLAGS='floatX=float32,device=gpu'
  24. # Set up an unprivileged user to run as
  25. RUN useradd jupyter -s /bin/false && \
  26. mkdir /home/jupyter && \
  27. chown jupyter:jupyter /home/jupyter && \
  28. passwd jupyter -l
  29. ENTRYPOINT ["/sbin/runuser", "-u", "jupyter", "/usr/local/bin/start_jupyter"]
  30. EXPOSE 8888