ubuntu C++开发环境
## our local base imageFROM ubuntu:20.04## something infomationsMAINTAINER geodoer<geodoer@163.com>LABEL description = "Container for use with Visual Studio"## use aliyunRUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list## install build dependenciesRUN apt-get updateRUN apt-get install -y rsyncRUN apt-get install -y zipRUN apt-get install -y g++ make cmake gdb## install and configure SSH for communication with Visual StudioRUN apt-get install -y openssh-server# create user for SSHRUN useradd -m -d /home/geodoer -s /bin/bash -G sudo geodoer# set user passwordRUN echo "geodoer:geodoer123" | chpasswd# configure sshRUN mkdir -p /var/run/sshdRUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && ssh-keygen -A# expose port 22EXPOSE 22# start ssh and enter bashENTRYPOINT [ "sh", "-c", "service ssh start; bash"]