This Docker image allows you to create Python web applications that run with ASGI and Nginx in a single container.
To run my image, pull down balassit/asgi:latest
- Start Docker container
docker build -t my-asgi-app .
docker run --name my-asgi-app -p 80:80 my-asgi-app
- Open wepage to http://127.0.0.1/
This repository is based on the work done by @tiangolo. For details on creating your own application using ASGI, check out this links
- FastAPI (which is based on Starlette) with this Docker image: tiangolo/uvicorn-gunicorn-fastapi.
- Starlette directly, with this Docker image: tiangolo/uvicorn-gunicorn-starlette.
- Or any other ASGI framework with this Docker image: tiangolo/uvicorn-gunicorn.