Skip to content

Commit

Permalink
Merge pull request #7 from blibli-badak/java11-alpine
Browse files Browse the repository at this point in the history
fix: add sshd to autostart
  • Loading branch information
vincentzhangz authored Apr 4, 2023
2 parents 20250a9 + 690e429 commit 5a81523
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 5a81523

Please sign in to comment.