FROM alpine
EXPOSE 8080
RUN apk update \
#JDK
&& apk-add -y openjdk-8-jre \
#wget
&& apk-add -y wget \
#Tomcat
&& cd /usr/local \
&& wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.69/bin/apache-tomcat-8.5.69.tar.gz --no-check-certificate \
&& tar -xzvf apache-tomcat-8.5.69.tar.gz \
&& rm apache-tomcat-8.5.69.tar.gz \
&& mv apache-tomcat-8.5.69 tomcat8 \
#Maven
&& cd /usr/local \
&& wget https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.tar.gz --no-check-certificate \
&& tar -xzvf apache-maven-3.8.1-bin.tar.gz \
&& rm apache-maven-3.8.1-bin.tar.gz \
&& mv apache-maven-3.8.1 maven \
#Jenkins
#initialAdminPassword at /root/.jenkins/secrets/initialAdminPassword
&& cd /usr/local/tomcat8/webapps \
&& wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/war/2.300/jenkins.war --no-check-certificate \
#End
&& cd /usr/local
CMD /usr/local/tomcat8/bin/catalina.sh run
alpine jenkins
最新推荐文章于 2024-11-01 10:27:08 发布