Last active
July 2, 2018 08:47
-
-
Save jeepkd/5a0e88260aca53905b0b6b5efabd0b4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Ubuntu as a base image for creating a new one. | |
FROM ubuntu:16.04 | |
# Install dependencies for Tensorflow. | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
build-essential \ | |
curl \ | |
libfreetype6-dev \ | |
libhdf5-serial-dev \ | |
libpng12-dev \ | |
libzmq3-dev \ | |
pkg-config \ | |
python \ | |
python-dev \ | |
rsync \ | |
software-properties-common \ | |
unzip | |
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \ | |
python get-pip.py && \ | |
rm get-pip.py | |
# Install python packages and Tensorflow itself. | |
RUN pip --no-cache-dir install \ | |
Pillow \ | |
h5py \ | |
ipykernel \ | |
jupyter \ | |
matplotlib \ | |
numpy \ | |
pandas \ | |
scipy \ | |
sklearn \ | |
tensorflow \ | |
&& \ | |
python -m ipykernel.kernelspec | |
# Set working directory -- default path where docker would run commands. | |
WORKDIR "/workspace" | |
# Set default command that always run if there is no other command specified. | |
# This prints current tensorflow version number. | |
CMD ["python", "-c", "import tensorflow; print(tensorflow.__version__)"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment