File size: 799 Bytes
e9ed954
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM python:3.11-slim

# System deps (minimal)
RUN apt-get update && apt-get install -y --no-install-recommends \

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

WORKDIR /app

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

# App
COPY streamlit_app.py /app/streamlit_app.py

# Env (HF Spaces -> “Secrets” / “Variables” bölümünde set et)
# - MotionPath_AI_API   : https://<private-backend>.hf.space  (zorunlu)
# - MotionPath_AI_TOKEN : backend ile aynı bearer (opsiyonel)
ENV PYTHONUNBUFFERED=1 \
    STREAMLIT_BROWSER_GATHER_USAGE_STATS=false

EXPOSE 7860

# Start Streamlit
CMD ["python", "-m", "streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]