Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
Zoey2936 authored Mar 24, 2024
1 parent 896a375 commit 32000e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG MAVEN4_VERSION=4.0.0-alpha-13
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 upgrade --no-cache -a && \
apk add --no-cache ca-certificates tzdata tini shadow \
apk add --no-cache ca-certificates tzdata tini shadow openssl \
git git-lfs \
netcat-openbsd \
openssh-server \
Expand All @@ -23,7 +23,8 @@ RUN wget https://apk.corretto.aws/amazoncorretto.rsa.pub -O /etc/apk/keys/amazon
wget https://dlcdn.apache.org/maven/maven-4/"$MAVEN4_VERSION"/binaries/apache-maven-"$MAVEN4_VERSION"-bin.tar.gz -O - | tar xz -C /usr/local/bin && \
mv /usr/local/bin/apache-maven-"$MAVEN4_VERSION" /usr/local/bin/mvn4 && \
useradd -d /tmp -Ms /bin/ash -u 1000 jenkins && \
apk del --no-cache shadow
echo "jenkins:$(openssl rand -base64 12)" | chpasswd && \
apk del --no-cache shadow openssl

COPY --from=docker:26.0.0-cli-alpine3.19 /usr/local/bin/docker /usr/local/bin/docker
COPY setup-sshd.sh /usr/local/bin/setup-sshd.sh
Expand Down

0 comments on commit 32000e9

Please sign in to comment.