Bartek Grzybowski | c4378cf | 2019-04-05 10:10:12 +0200 | [diff] [blame] | 1 | FROM centos/systemd |
Samuli Silvius | 3be94e4 | 2019-03-22 10:00:43 +0200 | [diff] [blame] | 2 | |
Bartek Grzybowski | ab94ea5 | 2019-04-09 10:21:16 +0200 | [diff] [blame] | 3 | RUN yum -y update && yum clean all |
| 4 | |
Samuli Silvius | 3be94e4 | 2019-03-22 10:00:43 +0200 | [diff] [blame] | 5 | RUN yum -y install openssh-server sudo openssh-clients \ |
| 6 | epel-release python-docker-py iproute |
Samuli Silvius | 3be94e4 | 2019-03-22 10:00:43 +0200 | [diff] [blame] | 7 | RUN systemctl enable sshd.service |
Bartek Grzybowski | ab94ea5 | 2019-04-09 10:21:16 +0200 | [diff] [blame] | 8 | |
| 9 | VOLUME ["/run"] |
| 10 | |
Samuli Silvius | 3be94e4 | 2019-03-22 10:00:43 +0200 | [diff] [blame] | 11 | EXPOSE 22 |
| 12 | |
| 13 | CMD ["/usr/sbin/init"] |