This container, named python-fastapi, is designed to execute Python 3.9 code based on FastAPI. It runs the code found in the /opt directory and streams it through port 8000 using the uvicorn ASGI server.
Pull the Docker Image:
docker pull modulairy/python-fastapi:latest
Run the Container:
docker run -p 8000:8000 modulairy/python-fastapi:latest
Access the FastAPI Application:
Open your web browser and navigate to http://localhost:8000. You should be able to interact with the FastAPI application.
The container relies on the following Python packages:
If you want to build the Docker image locally, clone the GitHub repository and navigate to the repository's root directory. Then, run the following commands:
docker build -t modulairy/python-fastapi:latest .
Feel free to explore and modify the code to suit your specific needs!
Content type
Image
Digest
sha256:35a59b9fd…
Size
38.1 MB
Last updated
over 2 years ago
docker pull modulairy/python-fastapi