File size: 717 Bytes
5107868
 
 
 
 
1448d1e
5107868
1448d1e
5107868
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Minimal image for the AutoAnalyst demo — no torch, no GPU (Groq is an API).
FROM python:3.11-slim

ENV PYTHONUNBUFFERED=1 \
    PIP_NO_CACHE_DIR=1 \
    AUTOANALYST_ALLOW_UPLOAD=1 \
    AUTOANALYST_SAMPLES_DIR=/app/samples \
    AUTOANALYST_UPLOAD_DIR=/tmp/autoanalyst_uploads \
    AUTOANALYST_MODEL=llama-3.3-70b-versatile

WORKDIR /app

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

COPY autoanalyst/ ./autoanalyst/
COPY app/ ./app/
COPY samples/ ./samples/

# run as a non-root user (HF Spaces convention: uid 1000)
RUN useradd -m -u 1000 user && chown -R user:user /app
USER user

EXPOSE 8000
CMD ["uvicorn", "app.server:app", "--host", "0.0.0.0", "--port", "8000"]