2022-09-09 11:37:37 +02:00
|
|
|
FROM debian:bookworm-slim
|
|
|
|
|
2022-09-17 14:38:26 +02:00
|
|
|
RUN set -eux && \
|
|
|
|
apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
2022-09-09 11:37:37 +02:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
openssh-server \
|
2022-09-18 14:38:53 +02:00
|
|
|
sudo \
|
2022-09-18 14:06:54 +02:00
|
|
|
locales \
|
2022-09-09 11:37:37 +02:00
|
|
|
curl \
|
|
|
|
telnet \
|
|
|
|
net-tools \
|
|
|
|
screen \
|
2022-09-17 14:38:52 +02:00
|
|
|
vim \
|
2022-10-30 12:52:20 +01:00
|
|
|
git \
|
|
|
|
man \
|
2023-02-16 14:56:44 +01:00
|
|
|
less \
|
2022-09-17 14:38:26 +02:00
|
|
|
&& \
|
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
2022-09-18 14:06:54 +02:00
|
|
|
rm /etc/ssh/ssh_host_*key* && \
|
|
|
|
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
|
|
|
|
/usr/sbin/locale-gen && \
|
|
|
|
/usr/sbin/update-locale 'LANG=en_US.UTF-8'
|
2022-09-09 11:37:37 +02:00
|
|
|
|
|
|
|
ADD start.sh /
|
2022-09-18 14:29:17 +02:00
|
|
|
ADD setup.sh /
|
2022-09-09 11:37:37 +02:00
|
|
|
|
|
|
|
EXPOSE 22/tcp
|
|
|
|
|
|
|
|
CMD /start.sh
|
|
|
|
|
|
|
|
HEALTHCHECK CMD netstat -tnlp | grep '0.0.0.0:22' || exit 1
|