Skip to content

Instantly share code, notes, and snippets.

@Arnold-git
Created January 27, 2023 15:46
Show Gist options
  • Save Arnold-git/d4fccc4c4a08093bd45f70e21baa1c68 to your computer and use it in GitHub Desktop.
Save Arnold-git/d4fccc4c4a08093bd45f70e21baa1c68 to your computer and use it in GitHub Desktop.
FROM python:3.9
WORKDIR /sentimentApi
#
COPY ./app/requirements.txt /sentimentApi/requirements.txt
#
RUN pip install --no-cache-dir --upgrade -r /sentimentApi/requirements.txt
#
COPY ./app /sentimentApi/app
#
CMD exec gunicorn --bind :$PORT --workers 1 --worker-class uvicorn.workers.UvicornWorker --threads 8 app.main:app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment