# Use official Python 3.10 image
FROM python:3.10-slim

# Set working directory
WORKDIR /var/www/html/iptv

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy all app files
COPY . .

# Expose Flask default port
EXPOSE 5000

# Run the Flask app
CMD ["python3", "app.py"]
