-
Notifications
You must be signed in to change notification settings - Fork 5
Switch to a JRE 23 base image on Alpine #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 && \ | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. untar to |
||
| 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 | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. copy in the binaries from the temporary |
||
|
|
||
| # 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 && \ | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. soft link |
||
| echo "CLI version:" && google-play-cli version | ||
|
|
||
| # set the entrypoint to the cli and default args to `--help` | ||
| ENTRYPOINT [ "google-play-cli" ] | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a breaking change: set the entrypoint to |
||
| CMD [ "--help" ] | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. set the default command line args to |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only add
wgetsince AFAIKjqandunziparen't required??