Skip to content

Commit

Permalink
T903|update debian to debian 12 to use java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoSchmidt1703 authored and MediaMarco committed Aug 17, 2023
1 parent 2b68206 commit 0bb3803
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions Dockerfile
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"]

0 comments on commit 0bb3803

Please sign in to comment.