Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files12345678910111213141516171819202122# Use official Python base imageFROM python:3.11-slim# Set working directoryWORKDIR /app# Copy requirements.txt and install Python packagesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy the rest of the appCOPY app.py image_fetcher.py video.py video2.py ./RUN apt-get update && apt-get install -y ffmpegRUN apt-get update && apt-get install -y fonts-liberationRUN apt-get update && apt-get install -y tesseract-ocr# Expose port 5000 (Flask default)EXPOSE 7860# Run the Flask appCMD ["python", "app.py"]123456789101112131415161718192021222324FROM python:3.11-slimWORKDIR /app# Install system dependencies firstRUN apt-get update && \apt-get install -y ffmpeg tesseract-ocr fonts-liberation && \apt-get clean# Copy requirements and install Python depsCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy your application codeCOPY app.py image_fetcher.py video.py video2.py ./# Make sure these temp folders existRUN mkdir -p /tmp/images /tmp/sound /tmp/video# Set environment variables if needed (e.g., for Tesseract)ENV PYTHONUNBUFFERED=1EXPOSE 7860CMD ["python", "app.py"]
Dockerfile+12-10