File size: 946 Bytes
c2d8390
d0352d5
 
 
c2d8390
 
 
d0352d5
c2d8390
 
 
d0352d5
c2d8390
 
d0352d5
c2d8390
 
d0352d5
c2d8390
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ─────────────────────────────────────────────────────────────────────────────  
FROM python:3.9-slim
WORKDIR /app

# Copy code + Streamlit config
COPY . /app
RUN mkdir -p /app/.streamlit

# Install lightweight deps only
RUN pip install --upgrade pip
RUN pip install streamlit pandas scikit-learn

# Copy your config.toml into the container
COPY .streamlit/config.toml /app/.streamlit/

ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
ENV STREAMLIT_HOME=/app/.streamlit

EXPOSE 8501
CMD ["streamlit","run","app.py","--server.port=8501","--server.address=0.0.0.0"]
# ─────────────────────────────────────────────────────────────────────────────