123456789101112131415161718192021222324 |
- FROM reg.cestong.com.cn/cecf/py310
- RUN apt-get update && \
- apt-get install -yq openssh-server binutils libproj-dev sudo
- RUN service ssh start
- RUN useradd -m -d /home/cecf -G sudo -p cecf@cestong.com -u 1000 -s /bin/bash cecf
- RUN useradd -m -d /home/yawyd -G sudo -p cecf@cestong.com -u 1001 -s /bin/bash yawyd
- RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
- EXPOSE 22
- EXPOSE 8686
- EXPOSE 8687
- EXPOSE 8688
- RUN ssh-keygen -A
- USER root
- WORKDIR /
- CMD ["/usr/sbin/sshd","-D"]
|