Skip to content

Commit 28185ee

Browse files
Just download the webp tools
1 parent e325f11 commit 28185ee

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

Dockerfile

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
11
FROM eclipse-temurin:24-alpine AS builder
22

3-
# bump: libwebp /LIBWEBP_VERSION=([\d.]+)/ git:https://chromium.googlesource.com/webm/libwebp.git|^1
4-
# bump: libwebp after ./hashupdate Dockerfile LIBWEBP $LATEST
5-
ARG LIBWEBP_VERSION=1.6.0
6-
ARG LIBWEBP_SHA256=1c5ffab71efecefa0e3c23516c3a3a1dccb45cc310ae1095c6f14ae268e38067
7-
ARG LIBWEBP_URL="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$LIBWEBP_VERSION-linux-x86-64.tar.gz"
8-
93
WORKDIR /app
10-
RUN apk --no-cache add binutils curl tar
11-
RUN curl -L --fail --retry 3 --retry-delay 5 "$LIBWEBP_URL" -o /tmp/libwebp.tar.gz && \
12-
echo "$LIBWEBP_SHA256 /tmp/libwebp.tar.gz" | sha256sum -c - && \
13-
tar -xzf /tmp/libwebp.tar.gz --one-top-level=libwebp --strip-components=1 && \
14-
rm /tmp/libwebp.tar.gz
15-
164
COPY . .
175
RUN --mount=type=cache,target=/root/.gradle ./gradlew jlink shadowJar
186

197
# bump: alpine /FROM alpine:([\d.]+)/ docker:alpine|^3
208
# bump: alpine link "Release notes" https://alpinelinux.org/posts/Alpine-$LATEST-released.html
219
FROM alpine:3.22.1 AS bot
2210

23-
# bump: ffmpeg /static-ffmpeg:([\d.]+)/ docker:mwader/static-ffmpeg|~7.0
24-
COPY --from=mwader/static-ffmpeg:7.0.2 /ffmpeg /usr/local/bin/
25-
ENV FFMPEG_PATH=/usr/local/bin/ffmpeg
11+
RUN apk --no-cache add libwebp-tools
2612

27-
COPY --from=builder /app/libwebp/bin/cwebp /usr/local/bin/
28-
COPY --from=builder /app/libwebp/bin/dwebp /usr/local/bin/
13+
# bump: ffmpeg /static-ffmpeg:([\d.]+)/ docker:mwader/static-ffmpeg|~7.0
14+
COPY --from=mwader/static-ffmpeg:7.0.2 /ffmpeg /usr/bin/
15+
ENV FFMPEG_PATH=/usr/bin/ffmpeg
2916

3017
COPY --from=builder /app/build/jlink/jre jre
3118
COPY --from=builder /app/build/libs/Stickerify-1.0-all.jar Stickerify.jar
3219

33-
CMD ["jre/bin/java", "-Dcom.sksamuel.scrimage.webp.binary.dir=/usr/local/bin/", "-jar", "Stickerify.jar"]
20+
CMD ["jre/bin/java", "-Dcom.sksamuel.scrimage.webp.binary.dir=/usr/bin/", "-jar", "Stickerify.jar"]

0 commit comments

Comments
 (0)