Pārlūkot izejas kodu

调整docker

develop
H Vs pirms 1 dienas
vecāks
revīzija
2b86c22961
1 mainītis faili ar 15 papildinājumiem un 15 dzēšanām
  1. +15
    -15
      docker/Dockerfile.latest

+ 15
- 15
docker/Dockerfile.latest Parādīt failu

@@ -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 # 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 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 ENV BUILD_PREFIX=/app


ADD . ${BUILD_PREFIX} 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} WORKDIR ${BUILD_PREFIX}




Notiek ielāde…
Atcelt
Saglabāt