Permalink
Browse files

Upgraded Apache Ant to 1.10.1 in the Docker alpine flavor image

For a more reliable Docker image build, also switched to the ant archive
repository to fetch the needed binary as other repositories only provide
the latest versions.
  • Loading branch information...
luccioman committed Feb 10, 2017
1 parent 5440557 commit 4306f4d9a37fad13fb1bcada5eb7b3b62f04e85c
Showing with 3 additions and 3 deletions.
  1. +3 −3 docker/Dockerfile.alpine
@@ -16,7 +16,7 @@ WORKDIR /tmp
# --- Begin of apache ant install : from binary distribution because ant is not in alpine packages
# set ant version once in a environment variable
ENV ANT_VERSION 1.10.0
ENV ANT_VERSION 1.10.1
# All in one step to reduce image size growth :
# - add gnupg package
@@ -26,8 +26,8 @@ ENV ANT_VERSION 1.10.0
# - remove archive and gnupg package
RUN apk update && \
apk add --no-cache gnupg && \
curl -fSL http://www.eu.apache.org/dist//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz -o apache-ant-${ANT_VERSION}-bin.tar.gz && \
curl -fSL https://www.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz.asc -o apache-ant-${ANT_VERSION}-bin.tar.gz.asc && \
curl -fSL https://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz -o apache-ant-${ANT_VERSION}-bin.tar.gz && \
curl -fSL https://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz.asc -o apache-ant-${ANT_VERSION}-bin.tar.gz.asc && \
curl -fSL https://www.apache.org/dist/ant/KEYS | gpg --import && \
gpg --verify apache-ant-${ANT_VERSION}-bin.tar.gz.asc && \
tar xzf apache-ant-${ANT_VERSION}-bin.tar.gz && \

0 comments on commit 4306f4d

Please sign in to comment.