FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild RUN apt-get update RUN apt-get upgrade -y RUN apt-get install -y openjdk-17-jdk openjdk-17-jre curl wget moreutils ENV JENKINS_VERSION 2.485 USER root WORKDIR / RUN wget "https://get.jenkins.io/war/$JENKINS_VERSION/jenkins.war" # 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"]