Spaces:
Build error
Build error
File size: 1,075 Bytes
6ebc9b2 e5bdbe5 | 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | FROM ghcr.io/astral-sh/uv:python3.11-trixie
# making app folder
WORKDIR /app
# copying files
COPY . .
# 创建目录
RUN mkdir -p /app/models
# 设置目录权限,确保应用可以读写
RUN chmod 777 /app/models
# 创建目录
RUN mkdir -p /app/output
# 设置目录权限,确保应用可以读写
RUN chmod 777 /app/output
# 创建目录
RUN mkdir -p /app/temp
# 设置目录权限,确保应用可以读写
RUN chmod 777 /app/temp
# 创建目录
RUN mkdir -p /app/.cache
# 设置目录权限,确保应用可以读写
RUN chmod 777 /app/.cache
# 配置 matplotlib 的缓存目录环境变量
ENV MPLCONFIGDIR=/app/.cache/matplotlib
# 配置字体的缓存目录环境变量
ENV FONTCONFIG_PATH=/app/.cache/fontconfig
# installing requirements
RUN apt-get update
RUN apt-get install ffmpeg -y
# RUN pip install --upgrade pip
# RUN pip install -r ./requirements.txt
RUN uv add -r requirements.txt
RUN uv sync --all-groups --upgrade
# launching gradio app
ENV GRADIO_SERVER_NAME="0.0.0.0"
EXPOSE 7860
# ENTRYPOINT python ./run.py
ENTRYPOINT uv run ./run.py
|