Sign inSign up

kimvanwyk/fastapi-poetry

By kimvanwyk

•Updated 9 months ago

A base for FastAPI and Poetry based projects.

Image
0

2.4K

kimvanwyk/fastapi-poetry repository overview

⁠fastapi-poetry

A Docker image to add poetry⁠ support via ONBUILD⁠ to Sebastián Ramírez's excellent uvicorn-gunicorn-fastapi⁠ FastAPI⁠ image.

⁠Usage

  • Use this image as the FROM argument in a container.

  • Copy all source files to /app/ in the container

  • Ensure there is a pyproject.toml in the root directory - it will be copied into the directory and all contents poetry installed into the container.

  • The container will expect to find a FastAPI application called app in a file called main.py.

For full usage details of the comprehensive underlying uvicorn-gunicorn-fastapi image, see its Docker Hub repo⁠.

⁠Example Child Project

⁠Project Directory

- Dockerfile
- pyproject.toml
- app/
     - main.py
     - other_python_source.py

⁠Dockerfile

FROM fastapi-poetry:latest

COPY app/* /app/

⁠Versions and Packages

A manifest file detailing the Python, FastAPI, and Poetry versions and the installed Python packages is in a file inside the image at /manifest.txt.

⁠Update Schedule

This image is built and pushed to registries once a month.

⁠Development

The source for this image is kept and developed in this GitLab repository⁠.

⁠Licensing

This image is licensed under the MIT License⁠ like the underlying underlying uvicorn-gunicorn-fastapi image.

⁠Authors

⁠Acknowledgements

This image is based entirely on the work of Sebastián Ramírez⁠.

Tag summary

Content type

Image

Digest

sha256:ac24e4042…

Size

463.6 MB

Last updated

9 months ago

docker pull kimvanwyk/fastapi-poetry