Skip to content

Instantly share code, notes, and snippets.

@pratos
Last active April 24, 2017 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pratos/eafb92540725d8fb81a58d3e5eee126c to your computer and use it in GitHub Desktop.
Save pratos/eafb92540725d8fb81a58d3e5eee126c to your computer and use it in GitHub Desktop.
'Docker for Data Science' blogpost
# Base image
FROM python:3.5.3-onbuild
# Updating repository sources
RUN apt-get update
# Installing cron and curl
RUN apt-get install cron -yqq \
curl
# Creating directories
RUN mkdir /data
RUN mkdir /notebooks
RUN mkdir /tmp/tflearn_logs
# Setting up volumes
VOLUME ["/data", "/notebooks", "/tmp/tflearn_logs"]
# jupyter
EXPOSE 8888
CMD jupyter notebook --no-browser --ip=0.0.0.0 --allow-root --NotebookApp.token='demo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment