This project demonstrates how to containerize a Python Flask web application using Docker. It encapsulates the application and its dependencies into a lightweight, portable image that can run on any server.
- Containerization: Docker
- Language: Python 3.9
- Framework: Flask
- Base Image: Uses
python:3.9-slimfor a minimal footprint. - Isolation: The app runs in an isolated environment, ensuring it works exactly the same on a developer's laptop as it does in production.
- Networking: Exposes Port 5000 to allow external traffic to reach the API.
docker build -t my-python-app .