Skip to content

Commit cf07523

Browse files
Revert changes to libwebp setup
1 parent 9f814fe commit cf07523

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ ARG LIBWEBP_URL="https://storage.googleapis.com/downloads.webmproject.org/releas
99

1010
WORKDIR /app
1111
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
12+
RUN apk --no-cache add binutils curl tar
13+
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"
1417

1518
COPY . .
1619
RUN --mount=type=cache,target=/root/.gradle ./gradlew jlink shadowJar

0 commit comments

Comments
 (0)