File size: 238 Bytes
59fc3d1
 
 
 
 
 
 
f192e9d
2c36fe2
f192e9d
59fc3d1
 
 
f192e9d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.12-slim

ENV PYTHONUNBUFFERED=1
ENV PORT=7860

WORKDIR /app

RUN pip install --no-cache-dir fastapi uvicorn httpx pydantic

COPY server.py .

EXPOSE 7860

CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]