Files
rip-help-system/Dockerfile
sabo a81d5794d4 Align Coolify webapp with WinSCP share and remote output paths.
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>
2026-08-25 19:47:09 +03:00

22 lines
868 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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=*"]