3df0ca53ab
A-8 1차: crawl-health 컨테이너(100.110.63.63:8765 Tailscale 바인딩 전용, 읽기 전용 SELECT, caddy 라우트 금지). D-1 전제 작업: STT_PRELOAD=0+30분 유휴 해제(lock+inflight+reaper), marker MARKER_PRELOAD=0+idle-unload, /ready idle=200(503=warmup_failed 한정 — fastapi depends_on 정합), healthcheck cuda 기준 전환.
13 lines
361 B
Docker
13 lines
361 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /srv
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY server.py .
|
|
|
|
EXPOSE 8765
|
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
|
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8765/health')"
|
|
|
|
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8765"]
|