23 lines
638 B
Docker
23 lines
638 B
Docker
FROM docker.io/library/debian:trixie-slim
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
systemd \
|
|
systemd-sysv \
|
|
openssh-client \
|
|
openssh-server \
|
|
iproute2 \
|
|
iptables \
|
|
socat \
|
|
curl \
|
|
ca-certificates \
|
|
&& systemctl enable ssh \
|
|
&& printf '#!/bin/sh\nmkdir -p /run/sshd\nexec "$@"\n' > /usr/local/sbin/floci-init \
|
|
&& chmod +x /usr/local/sbin/floci-init \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV container=docker
|
|
STOPSIGNAL SIGRTMIN+3
|
|
ENTRYPOINT ["/usr/local/sbin/floci-init"]
|
|
CMD ["/sbin/init"]
|