FROM python:3.10-slim RUN apt-get update && apt-get install -y curl poppler-utils tesseract-ocr tesseract-ocr-ita RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs RUN npm install -g @mermaid-js/mermaid-cli COPY . /app WORKDIR /app RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 CMD ["python", "app.py"]