Dockerfile中添加apt换国内源 (#7)
This commit is contained in:
parent
d459e853d3
commit
ca9fcad672
|
@ -1,5 +1,7 @@
|
|||
FROM debian:stable AS resource
|
||||
|
||||
COPY sources.list /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& apt-get install -y wget xz-utils dos2unix \
|
||||
|
@ -19,6 +21,8 @@ COPY --from=resource /res/ffmpeg/ffmpeg /usr/bin/ffmpeg
|
|||
|
||||
COPY --from=resource /res/ffmpeg/ffprobe /usr/bin/ffprobe
|
||||
|
||||
COPY sources.list /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& apt-get install -y curl wget gnupg git python3-pip fonts-wqy-microhei xfonts-utils chromium fontconfig libxss1 libgl1 \
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
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