Dockerfile 698 B

1234567891011121314
  1. FROM rancher/os-base
  2. COPY build/lsb-release /etc/
  3. COPY build/sshd_config.append.tpl /etc/ssh/
  4. COPY prompt.sh /etc/profile.d/
  5. RUN sed -i 's/rancher:!/rancher:*/g' /etc/shadow && \
  6. sed -i 's/docker:!/docker:*/g' /etc/shadow && \
  7. echo '## allow password less for rancher user' >> /etc/sudoers && \
  8. echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
  9. echo '## allow password less for docker user' >> /etc/sudoers && \
  10. echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
  11. cat /etc/ssh/sshd_config > /etc/ssh/sshd_config.tpl && \
  12. cat /etc/ssh/sshd_config.append.tpl >> /etc/ssh/sshd_config.tpl && \
  13. rm -f /etc/ssh/sshd_config.append.tpl /etc/ssh/sshd_config