Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created August 30, 2017 19:20
Show Gist options
  • Save dustinlacewell-wk/726fb1ec7a9a80b3e3bac44d36e39d51 to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/726fb1ec7a9a80b3e3bac44d36e39d51 to your computer and use it in GitHub Desktop.
FROM nginx
RUN apt-get update && apt-get install -y python python-dev python-pip git-core
RUN pip install nltk
RUN python -c "import nltk; nltk.download('stopwords'); nltk.download('punkt')"
COPY ./blot/requirements.txt /blot/requirements.txt
RUN pip install -r /blot/requirements.txt
COPY ./blot /blot
RUN cd /blot && python /blot/setup.py install
COPY . /blog
WORKDIR /blog
RUN fab build && mv output/* /usr/share/nginx/html/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment