FROM python:3.10-slim WORKDIR /app RUN apt-get update && apt-get install -y \ git ffmpeg libsm6 libxext6 \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt RUN mkdir -p /app/.EasyOCR && chmod -R 777 /app/.EasyOCR COPY src/ ./src/ EXPOSE 7860 CMD ["python", "src/app.py"]