mirror of
https://github.com/rancher/os.git
synced 2025-06-21 20:47:04 +00:00
12 lines
589 B
Plaintext
12 lines
589 B
Plaintext
FROM base
|
|
COPY scripts/dockerimages/scripts/console.sh /usr/sbin/
|
|
COPY scripts/dockerimages/scripts/update-ssh-keys /usr/bin/
|
|
COPY scripts/dockerimages/scripts/rancheros-install /usr/sbin/
|
|
RUN sed -i 's/rancher:!/rancher:*/g' /etc/shadow && \
|
|
sed -i 's/docker:!/docker:*/g' /etc/shadow && \
|
|
echo '## allow password less for rancher user' >> /etc/sudoers && \
|
|
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
|
|
echo '## allow password less for docker user' >> /etc/sudoers && \
|
|
echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
CMD ["/usr/sbin/console.sh"]
|