Spaces:
Sleeping
Sleeping
File size: 463 Bytes
1f8c9c8 24bf9af 1f8c9c8 d3168b5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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
#存放所有manga目录
RUN mkdir -m 777 -p manga_all
#遮罩存放
RUN mkdir -m 777 -p mask
# 设置一个可写的目录作为MPLCONFIGDIR环境变量的值
ENV MPLCONFIGDIR=/MPLCONFIGDIR
RUN mkdir -m 777 -p MPLCONFIGDIR
EXPOSE 7860
#server.py
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |