2022-09-09 11:37:37 +02:00
|
|
|
FROM debian:bookworm-slim
|
|
|
|
|
|
|
|
RUN set -eux; \
|
|
|
|
apt-get update; \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y; \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
openssh-server \
|
|
|
|
curl \
|
|
|
|
telnet \
|
|
|
|
net-tools \
|
|
|
|
screen \
|
|
|
|
; \
|
2022-09-17 14:20:16 +02:00
|
|
|
rm -rf /var/lib/apt/lists/* \
|
|
|
|
rm /etc/ssh/ssh_host_*key*
|
2022-09-09 11:37:37 +02:00
|
|
|
|
|
|
|
ADD start.sh /
|
|
|
|
|
|
|
|
EXPOSE 22/tcp
|
|
|
|
|
|
|
|
CMD /start.sh
|
|
|
|
|
|
|
|
HEALTHCHECK CMD netstat -tnlp | grep '0.0.0.0:22' || exit 1
|