# Use official Python base image FROM python:3.11-slim # Set working directory WORKDIR /app # Copy requirements.txt and install Python packages COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the app COPY app.py image_fetcher.py video.py video2.py ./ RUN apt-get update && apt-get install -y ffmpeg RUN apt-get update && apt-get install -y fonts-liberation # Expose port 5000 (Flask default) EXPOSE 7860 # Run the Flask app CMD ["python", "app.py"]