Spaces:
Sleeping
Sleeping
File size: 674 Bytes
e54d9bb 20c4a27 e54d9bb 20c4a27 e54d9bb 20c4a27 e54d9bb 20c4a27 e54d9bb 94105e3 20c4a27 e54d9bb 609bf92 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | FROM python:3.10-slim
WORKDIR /app
# ๊ธฐ์กด ํ์ผ์ ์ ์ฉํ ์์คํ
๋๊ตฌ ์ค์น ๋ถ๋ถ (์ ์ง)
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# ํ์ด์ฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
# ํ์ฌ ํด๋์ ๋ชจ๋ ํ์ผ(Notion.py ๋ฑ)์ ์๋ฒ๋ก ๋ณต์ฌ
COPY . .
# Hugging Face ์ ์ฉ ํฌํธ ์ค์
EXPOSE 7860
# src/streamlit_app.py ๋์ Notion.py ์คํ
CMD ["streamlit", "run", "Advisernote.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] |