mirror of
https://github.com/ivanilves/xiringuito.git
synced 2025-05-21 01:30:27 -07:00
15 lines
427 B
Docker
15 lines
427 B
Docker
FROM ubuntu:16.04
|
|
|
|
LABEL maintainer "ivan.ilves@gmail.com"
|
|
|
|
RUN apt-get update && apt-get --yes install openssh-server openssh-client sudo iproute2 iputils-ping iptables \
|
|
&& mkdir /var/run/sshd \
|
|
&& mkdir -p /lib/systemd/system && touch /lib/systemd/system/ssh.service \
|
|
&& ln -s /bin/true /sbin/modprobe \
|
|
&& apt-get clean
|
|
|
|
ADD ./ssh-keys /root/.ssh
|
|
ADD ./systemctl.mock /bin/systemctl
|
|
|
|
CMD ["/usr/sbin/sshd", "-De"]
|