Skip to content

Instantly share code, notes, and snippets.

@AlphaGit
Created July 29, 2018 18:33
Show Gist options
  • Save AlphaGit/fa4d4c12867df6b5c1fb799dfc63bbf0 to your computer and use it in GitHub Desktop.
Save AlphaGit/fa4d4c12867df6b5c1fb799dfc63bbf0 to your computer and use it in GitHub Desktop.
screaming-bot Dockerfile
FROM python:3.7
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python -m spacy download en
RUN python -c "import nltk; nltk.download('averaged_perceptron_tagger');"
RUN python -c "import nltk; nltk.download('gutenberg');"
VOLUME /usr/src/app/settings.py
VOLUME /usr/src/app/text_source.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment