# 更换ubuntu的源 RUN echo"deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse" \ "deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse" \ "deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse" \ "deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse" \ "deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse" \ "deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse" \ "deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse" \ "deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse" \ "deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse" \ "deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse" > /etc/apt/sources.list
RUN apt-get update
# 安装GCC环境 RUN apt-get install -y build-essential RUN apt-get install -y cmake RUN apt-get install -y gdb
RUN apt-get install -y openssh-server RUN mkdir /var/run/sshd RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN apt-get install -y rsync RUN sed -ri 's/RSYNC_ENABLE=false/RSYNC_ENABLE=true/g' /etc/default/rsync COPY rsync.conf /etc