Ubantu基础镜像更换腾讯源

opensjdk:8

日常使用中,会对基于ubantu系统环境的基础镜像进行各种环境编译
但是在apt的过程中经常会报错,我们百度的各种apt源不一定好用
我这里找了很多源发现最好用的还是腾讯的,接下来我看就看下怎么更换源
FROM openjdk:8
WORKDIR /etc/apt
RUN cp sources.list sources.list.bak
RUN touch sources.list
RUN echo 'deb http://mirrors.tencent.com/debian buster main contrib non-free' >> sources.list
RUN echo 'deb http://mirrors.tencent.com/debian buster-updates main contrib non-free' >> sources.list
RUN echo 'deb http://mirrors.tencent.com/debian-security buster/updates main' >> sources.list
RUN echo 'deb-src http://mirrors.tencent.com/debian buster main contrib non-free' >> sources.list
RUN echo 'deb-src http://mirrors.tencent.com/debian buster-updates main contrib non-free' >> sources.list
RUN echo 'deb-src http://mirrors.tencent.com/debian-security buster/updates main' >> sources.list
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
RUN apt-get install -y python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

你可能感兴趣的:(debian,linux,运维)