mirror of
https://github.com/rancher/os.git
synced 2025-06-22 13:07:04 +00:00
8 lines
371 B
Plaintext
8 lines
371 B
Plaintext
FROM base
|
|
COPY scripts/dockerimages/scripts/console.sh /usr/sbin/
|
|
COPY scripts/dockerimages/scripts/update-ssh-keys /usr/bin/
|
|
RUN sed -i 's/rancher.*/rancher:rixbL64o6zGmY:16486:0:99999:7:::/g' /etc/shadow && \
|
|
echo '## allow password less for rancher user' >> /etc/sudoers && \
|
|
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
CMD ["/usr/sbin/console.sh"]
|