Dockerfile: cleanup
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 31 Oct 2022 09:29:43 +0000 (10:29 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 31 Oct 2022 09:29:43 +0000 (10:29 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Dockerfile

index 6a4fb36fe99413d4e9980c6d85331d613bdde05c..1c672426bd1930ad68e9c159320c21262113ecf1 100644 (file)
@@ -143,9 +143,9 @@ RUN set -ex \
   && apt-get update \
   && apt-get install -y ca-certificates curl gnupg dirmngr --no-install-recommends \
   && rm -rf /var/lib/apt/lists/* \
-  && curl -fsSL --compressed https://downloads.apache.org/maven/KEYS | gpg --import \
   && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
   && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc \
+  && curl -fsSL --compressed https://downloads.apache.org/maven/KEYS | gpg --import \
   && gpg --batch --verify apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc apache-maven-${MAVEN_VERSION}-bin.tar.gz \
   && mkdir -p ${MAVEN_HOME} ${MAVEN_HOME}/ref \
   && tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz -C ${MAVEN_HOME} --strip-components=1 \