Spaces:
Sleeping
Sleeping
| FROM python:3.12-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential tesseract-ocr poppler-utils \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY entrypoint.sh /entrypoint.sh | |
| RUN chmod +x /entrypoint.sh | |
| COPY app/ ./app/ | |
| COPY alembic/ ./alembic/ | |
| COPY alembic.ini . | |
| RUN mkdir -p /data /emails | |
| EXPOSE 8000 | |
| ENTRYPOINT ["/entrypoint.sh"] | |