Agent 2.0 exdev 서버 배포 스택
- server-dev start/stop/deploy 및 Gitea push 자동 배포 - local-dev 로컬 개발 환경 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# docker/service-slim.Dockerfile
|
||||
# API 서비스용 경량 이미지
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 시스템 패키지
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
ca-certificates && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Python 패키지
|
||||
RUN pip install --no-cache-dir \
|
||||
httpx==0.27.0 \
|
||||
tenacity==8.2.3 \
|
||||
faiss-cpu==1.8.0 \
|
||||
fastapi==0.109.0 \
|
||||
uvicorn==0.27.0 \
|
||||
pydantic==2.6.0 \
|
||||
numpy==1.26.4 \
|
||||
qdrant-client==1.18.0 \
|
||||
packaging==24.0 \
|
||||
pymongo==4.6.1
|
||||
|
||||
# 스크립트 복사
|
||||
COPY scripts/ /app/scripts/
|
||||
|
||||
# Python 모듈 경로에 scripts 디렉토리 추가
|
||||
ENV PYTHONPATH="/app/scripts:${PYTHONPATH}"
|
||||
|
||||
# API 서버 실행 (멀티 워커)
|
||||
CMD ["python", "-m", "uvicorn", "scripts.run_service_qa:app", \
|
||||
"--host", "0.0.0.0", \
|
||||
"--port", "28012", \
|
||||
"--workers", "4"]
|
||||
|
||||
Reference in New Issue
Block a user