financial-rag-v2 / Dockerfile
Claude
Add Hugging Face Spaces configuration
e836d95 unverified
raw
history blame contribute delete
533 Bytes
FROM python:3.10-slim
WORKDIR /app
# ์‹œ์Šคํ…œ ์˜์กด์„ฑ ์„ค์น˜
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# requirements.txt ๋ณต์‚ฌ ๋ฐ ์˜์กด์„ฑ ์„ค์น˜
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์ฝ”๋“œ ๋ณต์‚ฌ
COPY . .
# ํฌํŠธ ๋…ธ์ถœ
EXPOSE 7860
# ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์„ค์ •
ENV API_HOST=0.0.0.0
ENV API_PORT=7860
# FastAPI ์„œ๋ฒ„ ์‹คํ–‰
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]