fix: use host network for rag service container (#1649)

This commit is contained in:
yetone
2025-03-20 03:45:44 +08:00
committed by GitHub
parent 8c9cd1a7b2
commit 008fe29de8
3 changed files with 5 additions and 9 deletions

View File

@@ -15,11 +15,8 @@ RUN uv venv
RUN uv pip install -r requirements.txt
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PORT=8000
EXPOSE ${PORT}
PYTHONDONTWRITEBYTECODE=1
COPY . .
CMD ["uv", "run", "fastapi", "run", "src/main.py", "--workers", "3"]
CMD ["uv", "run", "fastapi", "run", "src/main.py", "--workers", "3", "--port", "20250"]