Pim van den Berg
5fda9a6457
All checks were successful
continuous-integration/drone/push Build is passing
33 lines
726 B
Docker
33 lines
726 B
Docker
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 \
|
|
sudo \
|
|
locales \
|
|
curl \
|
|
telnet \
|
|
net-tools \
|
|
screen \
|
|
vim \
|
|
git \
|
|
man \
|
|
less \
|
|
&& \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
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'
|
|
|
|
ADD start.sh /
|
|
ADD setup.sh /
|
|
|
|
EXPOSE 22/tcp
|
|
|
|
CMD /start.sh
|
|
|
|
HEALTHCHECK CMD netstat -tnlp | grep '0.0.0.0:22' || exit 1
|