Skip to content

Instantly share code, notes, and snippets.

@kennethreitz
Last active January 10, 2017 19:26
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 kennethreitz/f192420f1079366d91ca3d02658ceb6b to your computer and use it in GitHub Desktop.
Save kennethreitz/f192420f1079366d91ca3d02658ceb6b to your computer and use it in GitHub Desktop.
Example dockerfile for using scikit-learn on heroku
FROM continuumio/miniconda
WORKDIR /app
# Disable Intel optimizations (takes a lot of extra space).
RUN conda install nomkl
# Install scientific dependencies.
RUN conda install scikit-learn
RUN conda install pandas
RUN conda install scipy
# Support for requirements.txt files.
COPY . /app
RUN pip install -r /app/requirements.txt
ONBUILD ADD . /app/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment