Skip to content

Commit

Permalink
Upgraded Apache Ant to 1.10.1 in the Docker alpine flavor image
Browse files Browse the repository at this point in the history
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 4306f4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 && \
Expand Down

0 comments on commit 4306f4d

Please sign in to comment.