修改 Dockerfile 中使用 apt 镜像源的方式 (#18)
* 修改 Dockerfile 中使用 apt 镜像源的方式 * Delete sources.list
This commit is contained in:
parent
f3d6950b51
commit
a38643e389
|
@ -1,8 +1,7 @@
|
||||||
FROM debian:stable AS resource
|
FROM debian:stable AS resource
|
||||||
|
|
||||||
COPY sources.list /etc/apt/sources.list
|
RUN sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" /etc/apt/sources.list \
|
||||||
|
&& apt-get update \
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get upgrade -y \
|
&& apt-get upgrade -y \
|
||||||
&& apt-get install -y wget xz-utils dos2unix \
|
&& apt-get install -y wget xz-utils dos2unix \
|
||||||
&& wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-$(dpkg --print-architecture)-static.tar.xz \
|
&& wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-$(dpkg --print-architecture)-static.tar.xz \
|
||||||
|
@ -21,9 +20,8 @@ COPY --from=resource /res/ffmpeg/ffmpeg /usr/bin/ffmpeg
|
||||||
|
|
||||||
COPY --from=resource /res/ffmpeg/ffprobe /usr/bin/ffprobe
|
COPY --from=resource /res/ffmpeg/ffprobe /usr/bin/ffprobe
|
||||||
|
|
||||||
COPY sources.list /etc/apt/sources.list
|
RUN sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" /etc/apt/sources.list \
|
||||||
|
&& apt-get update \
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get upgrade -y \
|
&& apt-get upgrade -y \
|
||||||
&& apt-get install -y curl wget gnupg git python3-pip fonts-wqy-microhei xfonts-utils chromium fontconfig libxss1 libgl1 \
|
&& apt-get install -y curl wget gnupg git python3-pip fonts-wqy-microhei xfonts-utils chromium fontconfig libxss1 libgl1 \
|
||||||
&& apt-get autoremove \
|
&& apt-get autoremove \
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
|
|
||||||
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
|
|
||||||
deb http://mirrors.aliyun.com/debian-security buster/updates main
|
|
||||||
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
|
|
||||||
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
|
|
||||||
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
|
|
||||||
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
|
|
||||||
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
|
|
Loading…
Reference in New Issue