FROM python:3.12-slim WORKDIR /app # Copy requirements first for better caching COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the source code COPY src/ /app/src/ COPY src/logging.yaml /app/ # Set PYTHONPATH to include the src directory ENV PYTHONPATH=/app/src ENV ADMIN_EMAIL="admin" ENV ADMIN_PASSWORD="admin" # Command to run your application # Adjust this to your actual entry point script CMD ["python", "-m", "src.main"]