diff --git a/Jenkins/Dockerfile b/Jenkins/Dockerfile index e8b1692..96655cd 100644 --- a/Jenkins/Dockerfile +++ b/Jenkins/Dockerfile @@ -10,9 +10,13 @@ USER root WORKDIR / RUN wget "https://get.jenkins.io/war/$JENKINS_VERSION/jenkins.war" -RUN useradd -m -s /bin/bash -d /jenkins jenkins -USER jenkins +# Add a user ID 1000:1000 +RUN useradd -m -s /bin/bash fakeuser +# Jenkins expects ID 1001:1001 +RUN useradd -m -s /bin/bash -d /jenkins jenkins + +USER jenkins WORKDIR /jenkins ENTRYPOINT ["java", "-jar", "/jenkins.war"]