TASK_PHASE_NODE1_REPAIR: - Fix daarion-web SSR: use CITY_API_BASE_URL instead of 127.0.0.1 - Fix auth API routes: use AUTH_API_URL env var - Add wget to Dockerfiles for healthchecks (stt, ocr, web-search, swapper, vector-db, rag) - Update healthchecks to use wget instead of curl - Fix vector-db-service: update torch==2.4.0, sentence-transformers==2.6.1 - Fix rag-service: correct haystack imports for v2.x - Fix telegram-gateway: remove msg.ack() for non-JetStream NATS - Add /health endpoint to nginx mvp-routes.conf - Add room_role, is_public, sort_order columns to city_rooms migration - Add TASK_PHASE_NODE1_REPAIR.md and DEPLOY_NODE1_REPAIR.md docs Previous tasks included: - TASK 039-044: Orchestrator rooms, Matrix chat cleanup, CrewAI integration
32 lines
900 B
Docker
32 lines
900 B
Docker
FROM python:3.11-slim
|
|
|
|
# Встановити wget для healthcheck
|
|
RUN apt-get update && apt-get install -y --no-install-recommends wget \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Копіювати requirements
|
|
COPY requirements.txt .
|
|
|
|
# Встановити Python залежності
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Embedding model завантажиться автоматично при першому запуску
|
|
# Це уникає проблем з мережею під час build
|
|
|
|
# Копіювати код
|
|
COPY app/ ./app/
|
|
|
|
# Створити директорію для даних
|
|
RUN mkdir -p /app/chroma_data
|
|
|
|
EXPOSE 8898
|
|
|
|
# Health check
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
|
CMD wget -qO- http://localhost:8898/health || exit 1
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8898"]
|
|
|