Accept ZIP/single help files, process with help_processor into OUTPUT_DIR+Postgres, pollable jobs, optional RESCAN_TOKEN. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
872 B
Docker
29 lines
872 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 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=*"]
|