Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lakamsani/851e58a7c8a079c1375d1e09c04925d0 to your computer and use it in GitHub Desktop.
Save lakamsani/851e58a7c8a079c1375d1e09c04925d0 to your computer and use it in GitHub Desktop.
FROM gw000/keras:1.2.2-py3 # https://hub.docker.com/r/gw000/keras/
MAINTAINER [email protected]
# install additional python packages
RUN pip3 --no-cache-dir install \
# jupyter notebook and ipython (Python 3)
ipython \
ipykernel \
jupyter \
# data analysis (Python 3)
pandas \
scikit-learn \
statsmodels \
&& python3 -m ipykernel.kernelspec
# for jupyter
EXPOSE 8888
# for tensorboard
EXPOSE 6006
WORKDIR /srv/
CMD /bin/bash -c 'jupyter notebook --no-browser --ip=* "$@"'
# run it like this.
# docker run -it -p=6006:6006 -p=8888:8888 -v=/Users/vamsee/Documents/tech/ml/projects/ml-docker/notebooks:/srv vamsee/keras-tf
# or
# docker run -it -p=6006:6006 -p=8888:8888 -v=/Users/vamsee/Documents/tech/ml/projects/ml-docker/notebooks:/srv vamsee/keras-tf /bin/bash
# Misc tests
# python3 -c "import keras; print(keras.__version__)"
# -->Using TensorFlow backend.
# -->1.2.2
# python3 -c 'import tensorflow as tf; print(tf.__version__)'
# -->1.0.0
# tensorboard --logdir logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment