File size: 559 Bytes
227006f ccf2d84 227006f ccf2d84 227006f ccf2d84 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM jenkins/jenkins:lts
# Set Jenkins to run on 0.0.0.0:7860
ENV JENKINS_OPTS="--httpListenAddress=0.0.0.0 --httpPort=7860"
# Expose the new Jenkins port
EXPOSE 7860
# # Optional: Disable the setup wizard (useful for automation)
# ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
# # Switch to root to install tools or modify system (optional)
# USER root
# # Example: Install extra tools (optional)
# # RUN apt-get update && apt-get install -y docker.io git
# # Switch back to jenkins user (required for Jenkins to run properly)
# USER jenkins
|