MuscleCare-FastAPI / Dockerfile
Merry99's picture
batch insert
57443be
raw
history blame
588 Bytes
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"]