Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbilie authored Nov 2, 2024
1 parent 6c4c4cd commit 8419a3c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ FROM jenkins/inbound-agent:alpine-jdk21 as jnlp

FROM jenkins/agent:latest-alpine-jdk21

ARG user=jenkins

USER root

RUN apk -U add git curl bash

RUN npm set unsafe-perm true
Expand All @@ -25,4 +29,10 @@ RUN nvm use 8.17.0
COPY --from=jnlp /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-agent
COPY --from=jnlp /usr/share/jenkins/agent.jar /usr/share/jenkins/agent.jar

USER ${user}

RUN node --version
RUN java --version
RUN which java

ENTRYPOINT ["/usr/local/bin/jenkins-agent"]

0 comments on commit 8419a3c

Please sign in to comment.