File size: 382 Bytes
88e8a56
 
 
 
 
 
b30190c
 
47956e4
4f59437
 
c6c5df4
88e8a56
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.10

WORKDIR /app

COPY . .

RUN pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu

RUN pip install --no-cache-dir fastapi uvicorn python-multipart pillow numpy super-image

RUN pip install --no-cache-dir --force-reinstall opencv-python-headless

EXPOSE 7860

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