mirror of
https://github.com/rancher/os.git
synced 2025-06-25 22:41:36 +00:00
19 lines
837 B
Plaintext
19 lines
837 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 vim
|
|
RUN rm -rf /etc/ssh/*key*
|
|
COPY scripts/dockerimages/scripts/entry.sh /usr/sbin/
|
|
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 && \
|
|
echo 'docker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
ENTRYPOINT ["/usr/sbin/entry.sh"]
|
|
CMD ["/usr/sbin/console.sh"]
|