원 레포랑 완전 분리
This commit is contained in:
25
Dockerfile
Executable file
25
Dockerfile
Executable file
@@ -0,0 +1,25 @@
|
||||
FROM python:3.10-slim
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
# 시스템 패키지 설치
|
||||
RUN apt-get update && \
|
||||
apt-get install -y poppler-utils tesseract-ocr tree curl && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Python 의존성 설치
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt \
|
||||
prometheus-fastapi-instrumentator
|
||||
|
||||
RUN pip install flower
|
||||
|
||||
# 코드 복사
|
||||
COPY workspace/ ./workspace/
|
||||
|
||||
ENV PYTHONPATH=/workspace/workspace
|
||||
|
||||
# ✅ uvicorn 실행 시 --log-config 옵션 추가
|
||||
CMD ["sh", "-c", "uvicorn api:app --workers 4 --host 0.0.0.0 --port ${PORT:-8888} --log-config log_config.yaml"]
|
||||
# -w 4 -k uvicorn.workers.UvicornWorker
|
||||
Reference in New Issue
Block a user