Ant1.8.2 Jdk7 Dockerfile

来源:互联网 发布:php获取url参数 编辑:程序博客网 时间:2024/05/17 07:41
FROM frekele/java:jdk7MAINTAINER jiankunking <jdk7 ant 1.8.2>ENV ANT_VERSION=1.8.2 ENV ANT_HOME=/opt/ant# change to tmp folderWORKDIR /tmp# Download and extract apache ant to opt folderRUN wget --no-check-certificate --no-cookies http://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz \    && wget --no-check-certificate --no-cookies http://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz.md5 \    && tar -zvxf apache-ant-${ANT_VERSION}-bin.tar.gz -C /opt/ \    && ln -s /opt/apache-ant-${ANT_VERSION} /opt/ant \    && rm -f apache-ant-${ANT_VERSION}-bin.tar.gz \    && rm -f apache-ant-${ANT_VERSION}-bin.tar.gz.md5# add executables to pathRUN update-alternatives --install "/usr/bin/ant" "ant" "/opt/ant/bin/ant" 1 && \    update-alternatives --set "ant" "/opt/ant/bin/ant" # Add the files# ADD rootfs /# change to root folderWORKDIR /root

本文参考:https://hub.docker.com/r/frekele/ant/

其他版本参考:https://hub.docker.com/r/frekele/ant/

本文作者:jiankunking,出处:http://blog.csdn.net/jiankunking/

0 0
原创粉丝点击