Dockerfile 542 B

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