AdviserNote / Dockerfile
FluxFinance's picture
Update Dockerfile
94105e3 verified
Raw
History Blame Contribute Delete
674 Bytes
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"]