File size: 1,063 Bytes
c2d8390
d0352d5
 
 
c2d8390
 
 
d0352d5
c2d8390
6f1ce68
c2d8390
6f1ce68
 
 
 
 
 
 
 
 
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
23
24
25
26
27
28
29
30
31
# ─────────────────────────────────────────────────────────────────────────────  
FROM python:3.9-slim
WORKDIR /app

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

# Install lightweight deps only
# Install all of our deps
RUN pip install --upgrade pip
RUN pip install \
    streamlit \
    pandas \
    scikit-learn \
    textblob \
    joblib \
    xgboost \
    torch \
    transformers

# 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"]
# ─────────────────────────────────────────────────────────────────────────────