-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 945 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (23 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# ==========================================
# ClutterKill — Python App Container
# ==========================================
# Acest Dockerfile construiește doar containerul aplicației Python.
# Ollama (AI) rulează separat ca serviciu Docker (vezi docker-compose.yml).
FROM python:3.12-slim
# Prevenim .pyc files și asigurăm output instant în consolă
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# Dependențe de sistem pentru OCR și procesare PDF
RUN apt-get update && apt-get install -y --no-install-recommends \
tesseract-ocr \
tesseract-ocr-ron \
poppler-utils \
&& rm -rf /var/lib/apt/lists/*
# Instalăm dependențele Python (cache Docker layer)
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copiem proiectul (suprascris de volum în docker-compose pentru dev)
COPY . .
CMD ["tail", "-f", "/dev/null"]