Skip to content

Commit

Permalink
add tini
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Aug 2, 2023
1 parent 549761d commit a8e68bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY setup-sshd.sh /usr/local/bin/setup-sshd.sh

RUN wget https://apk.corretto.aws/amazoncorretto.rsa.pub -O /etc/apk/keys/amazoncorretto.rsa.pub && \
echo "https://apk.corretto.aws" | tee -a /etc/apk/repositories && \
apk add --no-cache ca-certificates tzdata bash git git-lfs netcat-openbsd openssh-server \
apk add --no-cache ca-certificates tzdata tini bash git git-lfs netcat-openbsd openssh-server \
amazon-corretto-8 \
amazon-corretto-11 \
amazon-corretto-17 \
Expand All @@ -31,5 +31,5 @@ RUN wget https://apk.corretto.aws/amazoncorretto.rsa.pub -O /etc/apk/keys/amazon

WORKDIR /root
ENV JENKINS_AGENT_HOME=/root
ENTRYPOINT ["setup-sshd.sh"]
ENTRYPOINT ["tini", "--", "setup-sshd.sh"]
HEALTHCHECK CMD nc -z localhost 22 || exit 1

0 comments on commit a8e68bb

Please sign in to comment.