Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build docker Image of maven 3 based on sun jdk 8 Image

2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to build a docker image of maven 3 on the basis of sun jdk 8 image". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

FROM myimage/alpine_glibc_jdk:8MAINTAINER tongqiangENV MAVEN_VERSION 3.5.2ENV MAVEN_HOME / usr/local/maven/default-mavenENV MAVEN_DOWNLOAD_URL http://mirror.bit.edu.cn/apache/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gzRUN apk add-- no-cache bash tar wget ca-certificates unzip\ & & mkdir-p ${MAVEN_HOME}\ & & wget ${MAVEN _ DOWNLOAD_URL}\ & & tar-zxf apache-maven-$ {MAVEN_VERSION}-bin.tar.gz-C ${MAVEN_HOME}-- strip-components=1\ & & ln-s ${MAVEN_HOME} / bin/mvn / usr/local/bin/mvn\ & & apk del tar wget ca-certificates unzip\ & & rm-rf apache-maven-$ {MAVEN_VERSION}-bin.tar.gz\ ${MAVEN _ HOME} / bin/*.bat\ / tmp/*CMD ["bash"]

Build a maven image

Docker build-t myimage/alpine-sunjdk8-maven:3. "how to build a docker image of maven 3 based on a sunjdk8 image" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report