# 🐍 Auto-generated Dockerfile for Python 3.12
# Ghaymah detected: Flask
FROM python:3.12-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    gcc \
    && rm -rf /var/lib/apt/lists/*

# Copy and install Python dependencies
COPY requirements.txt* setup.py* pyproject.toml* ./
RUN pip install --no-cache-dir -r requirements.txt 2>/dev/null || true

# Copy application code
COPY . .

# Expose port
EXPOSE 8080

# Start the application
CMD ["sh", "-c", "python app.py"]
