Sign inSign up

modulairy/python-fastapi

By modulairy

Updated over 2 years ago

Image
0

932

modulairy/python-fastapi repository overview

python-fastapi Container README

Overview

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.

Usage

  1. Pull the Docker Image:

    docker pull modulairy/python-fastapi:latest
    
  2. Run the Container:

    docker run -p 8000:8000 modulairy/python-fastapi:latest
    
  3. Access the FastAPI Application:

    Open your web browser and navigate to http://localhost:8000. You should be able to interact with the FastAPI application.

Dependencies

The container relies on the following Python packages:

  • Python 3.9.18: The programming language used for the FastAPI application.
  • uvicorn: A lightweight ASGI server for running FastAPI applications.
  • mistune: A fast yet powerful Markdown parser in pure Python.
  • asyncio: A library to write concurrent code using the async/await syntax.
  • pika: A pure-Python library for interacting with RabbitMQ, a message broker.
  • FastAPI: A modern, fast (high-performance), web framework for building APIs with Python 3.9+.

Building the Image

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 .

Notes

  • Ensure that Docker is installed on your system before attempting to run the container.
  • For detailed information on FastAPI and other packages, refer to their respective documentation linked above.

Feel free to explore and modify the code to suit your specific needs!

Tag summary

Content type

Image

Digest

sha256:35a59b9fd

Size

38.1 MB

Last updated

over 2 years ago

docker pull modulairy/python-fastapi