Dockerfile 491 B

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