Spaces:
Running
Running
File size: 290 Bytes
031e7c9 f78cb5d 031e7c9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM python:3.9
RUN apt update && apt install -y libgl1-mesa-glx
USER root
COPY . .
RUN pip install -U pip
RUN pip install -r requirements.txt
#缓存目录筛选图片
RUN mkdir -m 777 -p cache
EXPOSE 7860
#server.py
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |