FROM jenkins/jenkins:lts-jdk11 as jenkins LABEL maintainer="Mohammad Akbari" WORKDIR / ENV TZ="Asia/Tehran" ENV JAVA_OPTS -Djenkins.install.runSetupWizard=true # ENV CASC_JENKINS_CONFIG /var/jenkins_home/casc.yaml USER root RUN apt update \ && apt full-upgrade -y \ && apt install sshpass -y \ && apt install ansible -y \ && apt install git -y \ && apt install nano -y RUN ssh-keygen -t rsa -f /root/.ssh/ansible -P password COPY plugins.txt /usr/share/jenkins/ref/plugins.txt RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt # COPY casc.yaml /var/jenkins_home/casc.yaml EXPOSE 8080 EXPOSE 50000