Skip to content

Instantly share code, notes, and snippets.

@aagnone3
Created August 22, 2020 21:45
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 aagnone3/d9bafc8754efacc0b9657f7a802dc2dc to your computer and use it in GitHub Desktop.
Save aagnone3/d9bafc8754efacc0b9657f7a802dc2dc to your computer and use it in GitHub Desktop.
fast-api-sentiment-dockerfile
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
# System-related
WORKDIR /app
COPY . .
# Install package
RUN pip3 install --upgrade pip && \
python3 setup.py install
# NLTK downloads
RUN python3 -c "import nltk; nltk.download('vader_lexicon')"
# Networking
EXPOSE 80
ENV APP_MODULE='fastapi_sentiment.main:app'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment