File size: 524 Bytes
947c6b2
5f5f673
947c6b2
cfd391a
5f439be
 
f8fabb7
d742f99
cfd391a
 
1bfa470
9418e94
863b181
 
cbd8074
863b181
f8fabb7
947c6b2
863b181
f8fabb7
cfd391a
f8fabb7
cfd391a
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 使用Hugging Face提供的基础镜像
FROM python:3.10


WORKDIR /code
RUN chmod 777 /code
COPY ./requirements.txt /code/requirements.txt
#COPY ./ /code/.


ENV FONTCONFIG_PATH /tmp
ENV MPLCONFIGDIR /tmp


# RUN apt-get update && apt-get install -y  git  git-lfs  ffmpeg  libsm6  libxext6  cmake  libgl1-mesa-glx  && rm -rf /var/lib/apt/lists/*  && git lfs install

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt


COPY . .

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