From 99ee8a3d6b743e1ad5a99b3f24d72b97e8a0f651 Mon Sep 17 00:00:00 2001 From: Craig Minihan Date: Fri, 20 Feb 2026 12:27:57 +0000 Subject: [PATCH 1/3] Use 23-jre-alpine as the base image ... plus use a multi-stage build to remove wget from the final image --- Dockerfile | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 66f5775..0ac2123 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,24 @@ -FROM eclipse-temurin:23-jdk +FROM eclipse-temurin:23-jre-alpine AS builder ARG PLAY_CLI_VERSION -RUN apt-get update -RUN apt-get install -y wget unzip jq +RUN apk update && \ + apk add wget # Install released Version from artefacts -RUN wget -q "https://github.com/Vacxe/google-play-cli-kt/releases/download/$PLAY_CLI_VERSION/google-play-cli.tar" && \ - tar -xvf "google-play-cli.tar" -C /usr/local && \ +RUN wget -q "https://github.com/Vacxe/google-play-cli-kt/releases/download/${PLAY_CLI_VERSION}/google-play-cli.tar" && \ + tar -xvf "google-play-cli.tar" -C /opt && \ rm "google-play-cli.tar" -ENV PATH="${PATH}:/usr/local/google-play-cli/bin/" +FROM eclipse-temurin:23-jre-alpine AS app -RUN echo "CLI version:" && google-play-cli version +# copy the cli binaries +COPY --from=builder /opt/google-play-cli /opt/google-play-cli + +# soft link the cli to /usr/local/bin and check it works ok +RUN ln -s /opt/google-play-cli/bin/google-play-cli /usr/local/bin/google-play-cli && \ + echo "CLI version:" && google-play-cli version + +# set the entrypoint to the cli and default args to `--help` +ENTRYPOINT [ "google-play-cli" ] +CMD [ "--help" ] From 4079cde01c4364c80c951823dd8d746c90fa6b97 Mon Sep 17 00:00:00 2001 From: Craig Minihan Date: Fri, 20 Feb 2026 12:30:29 +0000 Subject: [PATCH 2/3] Use 25-jre-alpine to reduce vulns --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ac2123..4f004f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:23-jre-alpine AS builder +FROM eclipse-temurin:25-jre-alpine AS builder ARG PLAY_CLI_VERSION @@ -10,7 +10,7 @@ RUN wget -q "https://github.com/Vacxe/google-play-cli-kt/releases/download/${PLA tar -xvf "google-play-cli.tar" -C /opt && \ rm "google-play-cli.tar" -FROM eclipse-temurin:23-jre-alpine AS app +FROM eclipse-temurin:25-jre-alpine AS app # copy the cli binaries COPY --from=builder /opt/google-play-cli /opt/google-play-cli From c546aad45bfddf3ef95067d81f6535ad31bf5735 Mon Sep 17 00:00:00 2001 From: Craig Minihan Date: Fri, 20 Feb 2026 16:31:44 +0000 Subject: [PATCH 3/3] Reverted to JRE 23 due to runtime WARNINGs --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f004f8..0ac2123 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:25-jre-alpine AS builder +FROM eclipse-temurin:23-jre-alpine AS builder ARG PLAY_CLI_VERSION @@ -10,7 +10,7 @@ RUN wget -q "https://github.com/Vacxe/google-play-cli-kt/releases/download/${PLA tar -xvf "google-play-cli.tar" -C /opt && \ rm "google-play-cli.tar" -FROM eclipse-temurin:25-jre-alpine AS app +FROM eclipse-temurin:23-jre-alpine AS app # copy the cli binaries COPY --from=builder /opt/google-play-cli /opt/google-play-cli