From 690e429ca474bcfc95e0a7ac987a36217fc04df2 Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 4 Apr 2023 14:21:40 +0700 Subject: [PATCH] fix: add sshd to autostart --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4ea56c5..32ba2e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,12 @@ RUN apk upgrade RUN apk add --update git curl openjdk11 nodejs npm maven openjfx # Install a basic SSH server -RUN apk add openssh-server +RUN apk add openssh RUN sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/ssh/sshd_config RUN mkdir -p /var/run/sshd +RUN apk add --no-cache openrc +RUN rc-update add sshd +RUN apk del openrc # Change Timezone To jakarta ENV TZ=Asia/Jakarta