File size: 462 Bytes
4c83ab6
 
 
7da71bc
4c83ab6
 
 
 
 
 
 
 
 
 
 
0a367ef
 
4c83ab6
7da71bc
4c83ab6
7da71bc
4c83ab6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"]