Jenkins / Dockerfile
binary1ne's picture
Update Dockerfile
ccf2d84 verified
raw
history blame contribute delete
559 Bytes
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