Spaces:
Sleeping
Sleeping
File size: 588 Bytes
37d20cf cb7c9b7 57443be cb7c9b7 37d20cf 57443be 37d20cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | FROM python:3.10-slim
# ์์
๋๋ ํ ๋ฆฌ ์ค์
WORKDIR /app
# ์์คํ
ํจํค์ง ์
๋ฐ์ดํธ ๋ฐ ํ์ํ ํจํค์ง ์ค์น
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# requirements ๋ณต์ฌ ๋ฐ ์ค์น
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ์ ํ๋ฆฌ์ผ์ด์
์ฝ๋ ๋ณต์ฌ
COPY . .
# ๋ก๊ทธ ๋๋ ํ ๋ฆฌ ์์ฑ
RUN mkdir -p /app/logs
# Hugging Face Space๋ ํฌํธ 7860์ ์ฌ์ฉํฉ๋๋ค
EXPOSE 7860
# FastAPI ์๋ฒ ์ง์ ์คํ (APScheduler ํฌํจ)
CMD ["python", "start.py"]
|