File size: 917 Bytes
1aa566a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
# ============================================================
# Argus — combined API + Dashboard (Hugging Face Spaces / Docker)
# Exposes port 7860 (Streamlit) — FastAPI runs internally on 8000
# ============================================================
FROM python:3.11-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential curl \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

RUN mkdir -p data/logs data/raw data/processed \
             data/model_registry/champion \
             data/model_registry/challenger \
             data/mlruns && \
    chmod +x start.sh

ENV PYTHONUNBUFFERED=1 \
    PYTHONDONTWRITEBYTECODE=1 \
    PYTHONPATH=/app \
    API_URL=http://localhost:8000

# HF Spaces requires port 7860; FastAPI runs on 8000 internally
EXPOSE 7860

CMD ["./start.sh"]