File size: 281 Bytes
f90e4b4
 
 
 
 
 
f3b42ba
f90e4b4
 
e71fa43
1
2
3
4
5
6
7
8
9
10
FROM python:3.11-slim

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

COPY policy.json .
COPY app.py .

CMD ["sh", "-lc", "python -c \"import os; print('PORT=', os.getenv('PORT'));\" && uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}"]