Skip to content

Commit

Permalink
fix: add sshd to autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent committed Apr 4, 2023
1 parent e0cf720 commit 690e429
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 690e429

Please sign in to comment.