File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11FROM alpine:3.12 AS download-maven
22RUN apk add --no-cache curl
3- ARG MAVEN_VERSION=3.5.4
4- ARG SHA=ce50b1c91364cb77efe3776f756a6d92b76d9038b0a0782f7d53acf1e997a14d
3+ ARG MAVEN_VERSION=3.6.3
4+ ARG SHA512=c35a1803a6e70a126e80b2b3ae33eed961f83ed74d18fcd16909b2d44d7dada3203f1ffe726c17ef8dcca2dcaa9fca676987befeadc9b9f759967a8cb77181c0
55ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries
66RUN mkdir -p /app /app/ref \
77 && curl -fsSL -o /maven.tar.gz ${BASE_URL}/apache-maven-"${MAVEN_VERSION}" -bin.tar.gz \
8- && echo "${SHA } /maven.tar.gz" | sha256sum -c - \
8+ && echo "${SHA512 } /maven.tar.gz" | sha512sum -c - \
99 && tar -xzf /maven.tar.gz -C /app --strip-components=1
1010
1111FROM alpine:3.12 AS generate-gpg-key
@@ -31,7 +31,7 @@ RUN mvn clean compile test
3131RUN mvn -DskipTests=true package
3232
3333FROM build-jar AS build-signed-jar
34- RUN apt-get update && apt-get install -y gnupg1 && rm -rf /var/lib/apt/lists/*
34+ RUN apt-get update && apt-get install -o APT::Immediate-Configure=0 --no-install-recommends - y gnupg1 && rm -rf /var/lib/apt/lists/*
3535ENV GNUPGHOME=/key
3636COPY --from=generate-gpg-key /key "${GNUPGHOME}"
3737COPY settings.xml /root/.m2/
You can’t perform that action at this time.
0 commit comments