# Dockerfile for Python Service FROM python:3.11-slim # Set working directory WORKDIR /app # Copy requirements file and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt && rm -rf /root/.cache/pip # Copy application code COPY . . # Run the Python script CMD ["python", "main.py"]