From 2b86c22961bc32acd38be8aa1a9030d213221a5b Mon Sep 17 00:00:00 2001 From: H Vs Date: Wed, 23 Apr 2025 10:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile.latest | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docker/Dockerfile.latest b/docker/Dockerfile.latest index 755c206..c278643 100644 --- a/docker/Dockerfile.latest +++ b/docker/Dockerfile.latest @@ -9,31 +9,31 @@ RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.li # Set the timezone and configure tzdata -RUN apt-get update \ - && apt-get install -y --no-install-recommends tzdata \ - && ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \ - && dpkg-reconfigure --frontend noninteractive tzdata \ - && apt-get clean +# RUN apt-get update \ +# && apt-get install -y --no-install-recommends tzdata \ +# && ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \ +# && dpkg-reconfigure --frontend noninteractive tzdata \ +# && apt-get clean # RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime -# RUN apt-get install -y --no-install-recommends tzdata \ -# && ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \ -# && dpkg-reconfigure --frontend noninteractive tzdata \ -# && apt-get clean +RUN apt-get install -y --no-install-recommends tzdata \ +&& ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \ +&& dpkg-reconfigure --frontend noninteractive tzdata \ +&& apt-get clean ENV BUILD_PREFIX=/app ADD . ${BUILD_PREFIX} -# RUN apt-get update \ -# &&apt-get install -y --no-install-recommends bash ffmpeg espeak libavcodec-extra\ -# && cd ${BUILD_PREFIX} \ -# && cp config-template.json config.json \ -# && /usr/local/bin/python -m pip install --no-cache --upgrade pip \ -# && pip install --no-cache -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ +RUN apt-get update \ + &&apt-get install -y --no-install-recommends bash ffmpeg espeak libavcodec-extra\ + && cd ${BUILD_PREFIX} \ + && cp config-template.json config.json \ + && /usr/local/bin/python -m pip install --no-cache --upgrade pip \ + && pip install --no-cache -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ WORKDIR ${BUILD_PREFIX}