Spaces:
Sleeping
Sleeping
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"] |