Skip to content

Instantly share code, notes, and snippets.

@iksnae
Created February 21, 2018 23:28
Show Gist options
  • Select an option

  • Save iksnae/dc10bba38d3443c7f359c3189bae557b to your computer and use it in GitHub Desktop.

Select an option

Save iksnae/dc10bba38d3443c7f359c3189bae557b to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
# run update
RUN apt-get update
# install python, pip, scipy, numpy, matplotlib system support
RUN apt-get install -y python python-pip python-numpy python-scipy python-matplotlib
# supress pip warnings by updating
RUN pip install --upgrade pip
# install pip modules for pandas, matplotlib + scikit-learn
RUN pip install -U pandas matplotlib scikit-learn
# install python dependencies
COPY requirements.txt .
RUN pip install -U -r requirements.txt
# declare environment variables
ENV NLTK_DATA /DATA/nltk_data
ENV SPACY_DATA /DATA/spacy_data
# Copy source + data files
COPY . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment