dockfile配置apt-get 163数据源并添加字体

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

你可能感兴趣的:(dockfile配置apt-get 163数据源并添加字体)