Skip to content

Instantly share code, notes, and snippets.

@Arnold-git
Created January 27, 2023 15:46
Show Gist options
  • Select an option

  • Save Arnold-git/d4fccc4c4a08093bd45f70e21baa1c68 to your computer and use it in GitHub Desktop.

Select an option

Save Arnold-git/d4fccc4c4a08093bd45f70e21baa1c68 to your computer and use it in GitHub Desktop.

Revisions

  1. Arnold-git created this gist Jan 27, 2023.
    15 changes: 15 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    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