mirror of
https://github.com/rancher/os.git
synced 2025-06-25 06:21:33 +00:00
16 lines
682 B
Plaintext
16 lines
682 B
Plaintext
FROM ubuntu:14.04.2
|
|
RUN apt-get update && \
|
|
apt-get upgrade --no-install-recommends -y && \
|
|
apt-get install -y --no-install-recommends openssh-server rsync
|
|
RUN rm -rf /etc/ssh/*key*
|
|
COPY scripts/dockerimages/scripts/console.sh /usr/sbin/
|
|
COPY scripts/dockerimages/scripts/update-ssh-keys /usr/bin/
|
|
RUN echo 'RancherOS \\n \l' > /etc/issue
|
|
RUN locale-gen en_US.UTF-8
|
|
RUN addgroup --gid 1100 rancher && \
|
|
addgroup --gid 1101 docker && \
|
|
useradd -u 1100 -g rancher -G docker,sudo -m -s /bin/bash rancher && \
|
|
echo '## allow password less for rancher user' >> /etc/sudoers && \
|
|
echo 'rancher ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
CMD ["/usr/sbin/console.sh"]
|