Last active
April 6, 2018 00:38
-
-
Save shabazpatel/7af7b44a608c85b31101b57cd749de62 to your computer and use it in GitHub Desktop.
Dockerfile used for iris model deployment
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
FROM cloudgear/ubuntu:14.04 | |
MAINTAINER Datmo devs <dev@datmo.io> | |
RUN apt-get update; \ | |
apt-get install -y \ | |
python python-pip \ | |
build-essential \ | |
python-dev \ | |
python-setuptools \ | |
python-matplotlib \ | |
libatlas-dev \ | |
curl \ | |
libatlas3gf-base && \ | |
apt-get clean | |
# Install pip | |
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \ | |
python get-pip.py && \ | |
rm get-pip.py | |
RUN pip install numpy==1.13.1 | |
RUN pip install scipy | |
RUN pip install -U scikit-learn | |
RUN pip install seaborn | |
RUN pip install matplotlib | |
RUN update-alternatives --set libblas.so.3 \ | |
/usr/lib/atlas-base/atlas/libblas.so.3; \ | |
update-alternatives --set liblapack.so.3 \ | |
/usr/lib/atlas-base/atlas/liblapack.so.3 | |
# Install CURL | |
RUN apt-get install curl | |
# Install other useful Python packages using pip | |
RUN apt-get update | |
RUN pip install --upgrade ipython && \ | |
pip install \ | |
ipykernel \ | |
jupyter \ | |
&& \ | |
python -m ipykernel.kernelspec | |
#Jupyter notebook related configs | |
COPY jupyter_notebook_config.py /root/.jupyter/ | |
EXPOSE 8888 | |
# Jupyter has issues with being run directly: https://github.com/ipython/ipython/issues/7062 | |
COPY run_jupyter.sh /home/ | |
RUN pip install flask | |
EXPOSE 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment