From cbb5d0438315dc4cae0d8937bc906a2298c52fb6 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Tue, 11 Oct 2016 16:10:48 -0400 Subject: [PATCH] Add initial image --- Dockerfile | 26 ++++++++++++++++++++++++++ usr/local/bin/start_jupyter | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 Dockerfile create mode 100755 usr/local/bin/start_jupyter diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0c90526 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04 +MAINTAINER Bradlee Speice + +LABEL Description="Jupyter server setup for ECBM E4040 Neural Networks" Version="0.1" + +# Start with the updates +RUN apt-get update && \ + + # 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 \ + python-pandas python-matplotlib \ + texlive-latex-extra texlive-fonts-recommended texlive-generic-recommended pandoc + +# And the python-specific tools +RUN pip install theano jupyter + +# And the startup script +COPY . / + +# Set up Theano for the GPU +ENV THEANO_FLAGS='floatX=float32,device=gpu' + +EXPOSE 8888 diff --git a/usr/local/bin/start_jupyter b/usr/local/bin/start_jupyter new file mode 100755 index 0000000..a03aef2 --- /dev/null +++ b/usr/local/bin/start_jupyter @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/development +/usr/local/bin/jupyter notebook --ip 0.0.0.0