您当前的位置: 首页 >  docker

衣舞晨风

暂无认证

  • 2浏览

    0关注

    1156博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Ant1.8.2 Jdk7 Dockerfile

衣舞晨风 发布时间:2017-04-04 10:09:41 ,浏览量:2

FROM frekele/java:jdk7

MAINTAINER jiankunking 

ENV ANT_VERSION=1.8.2 
ENV ANT_HOME=/opt/ant

# change to tmp folder
WORKDIR /tmp

# Download and extract apache ant to opt folder
RUN 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 path
RUN 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 folder
WORKDIR /root

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

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

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

关注
打赏
1647422595
查看更多评论
立即登录/注册

微信扫码登录

0.0405s