From 9866a5d1c5481fbe2daef936c5939269caced1ad Mon Sep 17 00:00:00 2001 From: Ameer Hamza Khan Date: Tue, 3 Dec 2024 05:16:42 +0000 Subject: [PATCH] Added the ssh server as part of base image. --- Dockerfile | 2 ++ scripts/entrypoint.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8911306..f5f1122 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,8 @@ RUN apt install -y net-tools iputils-ping tcpdump traceroute iproute2 iptables i RUN apt install -y software-properties-common +RUN apt install -y openssh-server + # Installing locales RUN apt install -y locales ENV LC_ALL=en_US.UTF-8 diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index d30fd69..b0fe6e0 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -20,6 +20,8 @@ then sudo chown -R $(id -u):$(id -g) $LOG_FILE fi +sudo service ssh start + eval $USER_COMMAND_INIT eval $SYS_COMMAND_INIT eval $USER_COMMAND_SETUP