File size: 886 Bytes
2a0f99d
e31837d
 
2a0f99d
 
 
 
 
 
 
e31837d
f7d17d1
 
e31837d
 
 
f7d17d1
e31837d
2a0f99d
e31837d
2a0f99d
e31837d
 
2a0f99d
e31837d
 
2a0f99d
 
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
# Streamlit frontend (TR/EN) — containerized
FROM python:3.11-slim

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    STREAMLIT_SERVER_HEADLESS=true \
    STREAMLIT_BROWSER_GATHER_USAGE_STATS=false \
    PORT=7860

# (Optional) useful utils
RUN apt-get update && apt-get install -y --no-install-recommends \

    ca-certificates curl && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Install deps first (better layer caching)
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt

# Copy app last
COPY app.py /app/app.py

# If you mount envs in HF Space, they’ll be visible at runtime (no bake-in here)
EXPOSE 7860

# Streamlit CLI with explicit address/port (headless)  :contentReference[oaicite:3]{index=3}
CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]