From fb35510b8875632839c42ef7bb5ef55dff2d8c48 Mon Sep 17 00:00:00 2001 From: luccioman Date: Thu, 2 Jun 2016 09:24:44 +0200 Subject: [PATCH] Improved curl commands (fail if URL is unreachable). --- docker/Dockerfile.alpine | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine index 3bf92ba1e..c962a176d 100755 --- a/docker/Dockerfile.alpine +++ b/docker/Dockerfile.alpine @@ -26,9 +26,9 @@ ENV ANT_VERSION 1.9.7 # - remove archive and gnupg package RUN apk update && \ apk add --no-cache gnupg && \ - curl http://www.eu.apache.org/dist//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz > apache-ant-${ANT_VERSION}-bin.tar.gz && \ - curl https://www.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz.asc > apache-ant-${ANT_VERSION}-bin.tar.gz.asc && \ - curl https://www.apache.org/dist/ant/KEYS | gpg --import && \ + 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://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 && \ mkdir /opt && \