Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Mar 24, 2024
1 parent 6a6073c commit 2d876d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ 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 bash git git-lfs netcat-openbsd openssh-server \
apk add --no-cache ca-certificates tzdata tini shadow \
git git-lfs \
netcat-openbsd \
openssh-server \
amazon-corretto-8 \
amazon-corretto-11 \
amazon-corretto-17 \
Expand All @@ -18,7 +21,9 @@ RUN wget https://apk.corretto.aws/amazoncorretto.rsa.pub -O /etc/apk/keys/amazon
wget https://dlcdn.apache.org/maven/maven-3/"$MAVEN_VERSION"/binaries/apache-maven-"$MAVEN_VERSION"-bin.tar.gz -O - | tar xz -C /usr/local/bin && \
mv /usr/local/bin/apache-maven-"$MAVEN_VERSION" /usr/local/bin/mvn && \
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
mv /usr/local/bin/apache-maven-"$MAVEN4_VERSION" /usr/local/bin/mvn4 && \
adduser -h /tmp -s /bin/ash -DHu 1000 -k /dev/null jenkins
apk del --no-cache shadow

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 2d876d9

Please sign in to comment.