uvicorn-gunicorn-starlette-docker
Docker image with Uvicorn managed by Gunicorn for high-performance Starlette web applications in Python with performance auto-tuning.
File Explorer
Download Latest Version (.zip)- deploy.yml
- issue-manager.yml
- test.yml
- zizmor.yml
- dependabot.yml
- latest-changes.yml
- main.py
- python3.10-slim.dockerfile
- python3.10.dockerfile
- python3.11-slim.dockerfile
- python3.11.dockerfile
- requirements.txt
- __init__.py
- test_defaults.py
- __init__.py
- utils.py
- .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 RecommendedPrerequisites
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
Was this content helpful?
(0 ratings)
