From 4410d7a0a046d64b47bd96d2f4f6d24ad9f4a979 Mon Sep 17 00:00:00 2001 From: SOULOFCINDER <841135647@qq.com> Date: Thu, 6 Apr 2023 10:03:24 +0800 Subject: [PATCH] update --- text_to_video_playground/Dockerfile | 5 +++++ text_to_video_playground/app.py | 2 +- text_to_video_playground/packages.txt | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 text_to_video_playground/packages.txt diff --git a/text_to_video_playground/Dockerfile b/text_to_video_playground/Dockerfile index 2f124b8..a713764 100644 --- a/text_to_video_playground/Dockerfile +++ b/text_to_video_playground/Dockerfile @@ -2,6 +2,11 @@ FROM public.ecr.aws/iflytek-open/cuda-go-python-base:11.6-1.17-3.9.13-ubuntu1804 +RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list +RUN sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list + +RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/* + WORKDIR /home/user/app RUN useradd -m -u 1000 user diff --git a/text_to_video_playground/app.py b/text_to_video_playground/app.py index 935ba6e..27eeca0 100644 --- a/text_to_video_playground/app.py +++ b/text_to_video_playground/app.py @@ -63,4 +63,4 @@ with gr.Blocks(css='style.css') as demo: prompt.submit(fn=generate, inputs=inputs, outputs=result) run_button.click(fn=generate, inputs=inputs, outputs=result) -demo.queue(api_open=False, max_size=15).launch() \ No newline at end of file +demo.queue(api_open=False, max_size=15).launch() diff --git a/text_to_video_playground/packages.txt b/text_to_video_playground/packages.txt new file mode 100644 index 0000000..a72c3b8 --- /dev/null +++ b/text_to_video_playground/packages.txt @@ -0,0 +1 @@ +libgl1-mesa-glx \ No newline at end of file