uvicorn-gunicorn-starlette-docker

(โ˜… 201)

Docker image with Uvicorn managed by Gunicorn for high-performance Starlette web applications in Python with performance auto-tuning.

  • .gitignore
  • LICENSE
  • README.md
  • release-notes.md

# Installation Guide

1. Get the code
git clone https://github.com/tiangolo/uvicorn-gunicorn-starlette-docker

Downloads the entire project code from GitHub to your computer.

cd uvicorn-gunicorn-starlette-docker

Moves into the project folder you just downloaded.

2. Python

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

RUN pip install poetry

Installs the Python libraries listed in requirements.txt (or similar).

COPY ./pyproject.toml ./poetry.lock* /tmp/

Type this command into your terminal and run it.

RUN poetry export -f requirements.txt --output requirements.txt --without-hashes

Type this command into your terminal and run it.

โœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation