fast-api-sentiment-dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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