|
1 | | -FROM azul/zulu-openjdk-alpine:24 AS builder |
2 | | - |
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_FILE="libwebp-$LIBWEBP_VERSION-linux-x86-64.tar.gz" |
8 | | -ARG LIBWEBP_URL="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/$LIBWEBP_FILE" |
| 1 | +FROM eclipse-temurin:24-alpine AS builder |
9 | 2 |
|
10 | 3 | WORKDIR /app |
11 | | -RUN apk --no-cache add binutils curl tar |
12 | | -RUN curl -L --fail --retry 3 --retry-delay 5 "$LIBWEBP_URL" -O && \ |
13 | | - echo "$LIBWEBP_SHA256 $LIBWEBP_FILE" | sha256sum -c - && \ |
14 | | - tar -xzf "$LIBWEBP_FILE" --one-top-level=libwebp --strip-components=1 && \ |
15 | | - rm "$LIBWEBP_FILE" |
16 | | - |
17 | 4 | COPY . . |
18 | 5 | RUN --mount=type=cache,target=/root/.gradle ./gradlew jlink shadowJar |
19 | 6 |
|
20 | 7 | # bump: alpine /FROM alpine:([\d.]+)/ docker:alpine|^3 |
21 | 8 | # bump: alpine link "Release notes" https://alpinelinux.org/posts/Alpine-$LATEST-released.html |
22 | 9 | FROM alpine:3.22.1 AS bot |
23 | 10 |
|
24 | | -# bump: ffmpeg /static-ffmpeg:([\d.]+)/ docker:mwader/static-ffmpeg|~7.0 |
25 | | -COPY --from=mwader/static-ffmpeg:7.0.2 /ffmpeg /usr/local/bin/ |
26 | | -ENV FFMPEG_PATH=/usr/local/bin/ffmpeg |
| 11 | +RUN apk --no-cache add libwebp-tools |
27 | 12 |
|
28 | | -COPY --from=builder /app/libwebp/bin/cwebp /usr/local/bin/ |
29 | | -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 |
30 | 16 |
|
31 | 17 | COPY --from=builder /app/build/jlink/jre jre |
32 | | -COPY --from=builder /app/build/libs/Stickerify-1.0-all.jar Stickerify.jar |
| 18 | +COPY --from=builder /app/build/libs/*-all.jar Stickerify.jar |
33 | 19 |
|
34 | | -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