generated from actions/hello-world-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T903|update debian to debian 12 to use java 17
- Loading branch information
1 parent
2b68206
commit 0bb3803
Showing
1 changed file
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
# Container image that runs your code | ||
FROM debian:buster-slim | ||
# Use bookworm / debian 12 | ||
FROM debian:bookworm-slim | ||
|
||
RUN mkdir -p /usr/share/man/man1 | ||
RUN apt-get update \ | ||
&& apt-get install -y wget \ | ||
&& apt-get install -y jq \ | ||
&& apt-get install -yf default-jre-headless firefox-esr libjpeg-progs \ | ||
&& wget --no-verbose -O jlineup-cli.jar "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.otto&a=jlineup-cli&v=LATEST&e=jar" \ | ||
#&& wget --no-verbose -O /jlineup-cli.jar "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=de.otto&a=jlineup-cli&e=jar&v=LATEST" \ | ||
# Update packages | ||
RUN apt-get update && apt-get -y upgrade | ||
RUN apt-get install -y wget jq | ||
|
||
# Download JLineup executable | ||
RUN wget --no-verbose -O jlineup-cli.jar "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=de.otto&a=jlineup-cli&v=LATEST&e=jar" | ||
#RUN wget --no-verbose -O /jlineup-cli.jar "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=de.otto&a=jlineup-cli&e=jar&v=LATEST" | ||
|
||
# Install Chrome & Firefox | ||
RUN apt-get install -yf firefox-esr libjpeg-progs \ | ||
&& wget -O chrome.deb --no-verbose https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ | ||
#&& wget -O chrome.deb --no-verbose https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb \ | ||
#&& wget -O chrome.deb --no-verbose https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb \ | ||
&& apt-get install -y ./chrome.deb \ | ||
&& rm ./chrome.deb | ||
|
||
# Copies your code file from your action repository to the filesystem path `/` of the container | ||
COPY entrypoint.sh /entrypoint.sh | ||
# Install jre to execute JLineup | ||
RUN mkdir -p /usr/share/man/man1 | ||
RUN apt-get install -yf default-jre-headless | ||
|
||
# Code file to execute when the docker container starts up (`entrypoint.sh`) | ||
# Copy endpoint.sh to image | ||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |