Dockerfile 603 B

12345678910111213
  1. FROM rancher/os-base
  2. COPY update-ssh-keys /usr/sbin/
  3. COPY build/lsb-release /etc/
  4. RUN sed -i 's/rancher:!/rancher:*/g' /etc/shadow && \
  5. sed -i 's/docker:!/docker:*/g' /etc/shadow && \
  6. sed -i 's/#ClientAliveInterval 0/ClientAliveInterval 180/g' /etc/ssh/sshd_config && \
  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. COPY prompt.sh /etc/profile.d/
  12. CMD ["/usr/sbin/console.sh"]