We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f814fe commit cf07523Copy full SHA for cf07523
Dockerfile
@@ -9,8 +9,11 @@ ARG LIBWEBP_URL="https://storage.googleapis.com/downloads.webmproject.org/releas
9
10
WORKDIR /app
11
ADD --checksum=sha256:$LIBWEBP_SHA256 $LIBWEBP_URL $LIBWEBP_FILE
12
-RUN apk --no-cache --update add binutils tar
13
-RUN tar -xzf $LIBWEBP_FILE --one-top-level=libwebp --strip-components=1 && rm $LIBWEBP_FILE
+RUN apk --no-cache add binutils curl tar
+RUN curl -L --fail --retry 3 --retry-delay 5 "$LIBWEBP_URL" -O && \
14
+ echo "$LIBWEBP_SHA256 $LIBWEBP_FILE" | sha256sum -c - && \
15
+ tar -xzf "$LIBWEBP_FILE" --one-top-level=libwebp --strip-components=1 && \
16
+ rm "$LIBWEBP_FILE"
17
18
COPY . .
19
RUN --mount=type=cache,target=/root/.gradle ./gradlew jlink shadowJar
0 commit comments