RabiesIQ / Dockerfile
Iman Kozly
Update Dockerfile
6f45ef9 verified
raw
history blame contribute delete
959 Bytes
# 1锔忊儯 讘住讬住: Python 3.13 slim
FROM python:3.13.5-slim
# 2锔忊儯 讛讙讚专转 转讬拽讬讬转 注讘讜讚讛
WORKDIR /app
# 3锔忊儯 讛转拽谞转 讻诇讬诐 谞讞讜爪讬诐
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# 4锔忊儯 讛注转拽转 讚专讬砖讜转 讜讛转拽谞转 住驻专讬讜转 Python
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
# 5锔忊儯 讛注转拽转 拽讜讚 讜拽讘爪讬诐
COPY src/ ./src/
COPY DB_model_IMAN.pkl ./src/
COPY categorical_encoders.pkl ./src/
COPY numerical_scaler.pkl ./src/
COPY Rabies__Weather__War_Combined_1.4.25.xlsx ./src/
# 6锔忊儯 讞砖讬驻转 驻讜专讟 (专拽 住讬诪讘讜诇讬)
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
# 7锔忊儯 讛驻注诇转 Streamlit 注诇 讛驻讜专讟 砖讛志HF Spaces 讬转谉
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]