This Dockerfile creates a lightweight container for a Python application. It uses the official Python 3.11 slim image to keep the image small and efficient. The code is copied into the container, dependencies are installed from requirements.txt, and the app is launched with app.py.
Base image: Python 3.11 (slim)
Working directory: /app
Dependencies: installed via pip
Exposed port: 5000
Command: runs python app.py
This setup makes the application portable, easy to deploy, and consistent across different environments.