File size: 394 Bytes
32f55d0
 
 
 
 
 
 
 
1751b09
 
 
32f55d0
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.11-slim

WORKDIR /app

COPY pyproject.toml README.md ./
COPY memguard ./memguard
COPY app ./app

# api + diffusers: the /score endpoint runs the real anisotropy metric, which
# needs torch + a Stable Diffusion model (downloaded on first request).
RUN pip install --no-cache-dir ".[api,diffusers]"

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