Resolve section text from OUTPUT_DIR by basename, add /api/search and richer /healthz, default mount to /mnt/.../Output, support --remote-root in processor. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
868 B
Docker
22 lines
868 B
Docker
# Slim Python image; psycopg2-binary включва свои libs, не е нужен build deps
|
||
FROM python:3.12-slim
|
||
|
||
WORKDIR /app
|
||
|
||
# Сваляме само файловете нужни за webapp-а (не и Windows-only deps)
|
||
# Затова инсталираме отделен webapp-requirements без pywin32 / pdfplumber / docx
|
||
COPY requirements-webapp.txt /app/
|
||
RUN pip install --no-cache-dir -r requirements-webapp.txt
|
||
|
||
# Кода + home image в образа (fallback ако липсва в share)
|
||
COPY webapp /app/webapp
|
||
COPY Bairaci.png /app/Bairaci.png
|
||
|
||
# Секции/картинки — Coolify Persistent Storage mount
|
||
ENV OUTPUT_DIR=/mnt/mssql/share/RIP/RIP_Help_Source/Output
|
||
ENV HOME_IMAGE=/app/Bairaci.png
|
||
|
||
EXPOSE 8000
|
||
|
||
CMD ["uvicorn", "webapp.main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers", "--forwarded-allow-ips=*"]
|