File size: 571 Bytes
0a62ada
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
02843bb
0a62ada
 
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.9-slim

# 1. System libs for OpenCV
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        libgl1-mesa-glx libglib2.0-0 libsm6 libxext6 libxrender1 libfontconfig1 && \
    rm -rf /var/lib/apt/lists/*

# 2. Python deps
COPY requirements.txt /tmp/
RUN pip install --no-cache-dir -r /tmp/requirements.txt

# 3. App code
WORKDIR /app
COPY . /app

# 4. Expose the Streamlit port used by HF (7860 by default)
EXPOSE 7860

CMD ["streamlit", "run", "streamlit_app.py", \
     "--server.port", "7860", \
     "--server.address", "0.0.0.0"]