neuralnets-docker/Dockerfile

42 lines
1.2 KiB
Docker
Raw Normal View History

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