Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files11243475678910111213111415131415161718191819202122212324# Use official Python base imageFROM python:3.11-slim
# Set working directoryWORKDIR /app
# Copy requirements.txt and install Python packages# 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 the rest of the app# Copy your application codeCOPY 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
# Make sure these temp folders existRUN mkdir -p /tmp/images /tmp/sound /tmp/video
# Expose port 5000 (Flask default)EXPOSE 7860# Set environment variables if needed (e.g., for Tesseract)ENV PYTHONUNBUFFERED=1
# Run the Flask appEXPOSE 7860CMD ["python", "app.py"]Dockerfile+12-10