Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dockerfile used for iris model deployment
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