Files
rip-help-system/Dockerfile
sabo b3869f7320 Include help_codes.py in the Docker image so Coolify can boot after the numbering change.
Fixes Traefik 503 / no available server when uvicorn imports help_codes at startup.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 13:36:33 +03:00

30 lines
910 B
Docker

# Python 3.12 — webapp + server-side rescan (help_processor)
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
libxml2 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements-webapp.txt /app/
RUN pip install --no-cache-dir -r requirements-webapp.txt
COPY webapp /app/webapp
COPY help_processor.py /app/help_processor.py
COPY help_codes.py /app/help_codes.py
COPY Bairaci.png /app/Bairaci.png
ENV OUTPUT_DIR=/mnt/mssql/share/RIP/RIP_Help_Source/Output
ENV HOME_IMAGE=/app/Bairaci.png
ENV HELP_REMOTE_ROOT=/mnt/mssql/share/RIP/RIP_Help_Source/Output
# Set in Coolify (required for /api/rescan):
# ANTHROPIC_API_KEY=...
# HELP_DB_CONN=...
# Optional:
# RESCAN_TOKEN=secret → require header X-Rescan-Token
EXPOSE 8000
CMD ["uvicorn", "webapp.main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers", "--forwarded-allow-ips=*"]