28 lines
855 B
Docker
28 lines
855 B
Docker
|
FROM jrei/systemd-debian
|
||
|
|
||
|
ENV container docker
|
||
|
ENV LC_ALL C
|
||
|
ENV DEBIAN_FRONTEND noninteractive
|
||
|
copy files /
|
||
|
RUN apt-get update \
|
||
|
&& apt-get install -y \
|
||
|
openssh-server vim \
|
||
|
net-tools \
|
||
|
&& apt-get clean \
|
||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
||
|
&& rm -f /lib/systemd/system/multi-user.target.wants/* \
|
||
|
/etc/systemd/system/*.wants/* \
|
||
|
/lib/systemd/system/local-fs.target.wants/* \
|
||
|
/lib/systemd/system/sockets.target.wants/*udev* \
|
||
|
/lib/systemd/system/sockets.target.wants/*initctl* \
|
||
|
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
|
||
|
/lib/systemd/system/systemd-update-utmp*
|
||
|
|
||
|
RUN mkdir /var/run/sshd
|
||
|
RUN systemctl enable ssh
|
||
|
RUN service ssh start
|
||
|
VOLUME [ "/sys/fs/cgroup" ]
|
||
|
|
||
|
run chmod +x /install.sh
|
||
|
run /install.sh
|