taskManager / Dockerfile-temp
rogerxavier's picture
Rename Dockerfile to Dockerfile-temp
d3168b5 verified
raw
history blame
463 Bytes
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"]