dockfile配置apt-get 163数据源并添加字体
2021-04-06 本文已影响0人
zzz_0427
RUN touch/etc/apt/apt.conf.d/10no--check-valid-until&& \
echo"Acquire::Check-Valid-Until \"0\";" > etc/apt/apt.conf.d/10no--check-valid-until
RUN mv/etc/apt/sources.list/etc/apt/sources.list.bak&& \
echo"deb http://mirrors.163.com/debian/ buster main non-free contrib" >/etc/apt/sources.list&& \
echo"deb http://mirrors.163.com/debian/ buster-updates main non-free contrib" >>/etc/apt/sources.list&& \
echo"deb http://mirrors.163.com/debian/ buster-backports main non-free contrib" >>/etc/apt/sources.list&& \
echo"deb-src http://mirrors.163.com/debian/ buster main non-free contrib" >>/etc/apt/sources.list
RUN apt-get update&& \
apt-get install-y fontconfig