FROM jenkins/jenkins:lts USER root RUN apt-get update && apt-get -y install \ build-essential # Install Plugins COPY plugins.txt /usr/share/jenkins/ref/plugins.txt RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt # Prevent plugin install banner, we've pre-installed our plugins RUN echo 2.0 > /usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state USER jenkins