diff --git a/.gitea/workflows/java.yml b/.gitea/workflows/java.yml index fb5244d..7697954 100644 --- a/.gitea/workflows/java.yml +++ b/.gitea/workflows/java.yml @@ -20,6 +20,7 @@ jobs: - 8 - 8_with_firefox - 17 + - 19_with_firefox steps: - name: Checkout uses: actions/checkout@v3 diff --git a/java/19_with_firefox/Dockerfile b/java/19_with_firefox/Dockerfile new file mode 100644 index 0000000..a6775f4 --- /dev/null +++ b/java/19_with_firefox/Dockerfile @@ -0,0 +1,35 @@ +# Latest Ubuntu image +FROM eclipse-temurin:19-jdk-focal + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt update -y \ + && apt install -y \ + curl \ + lsof \ + ca-certificates \ + openssl \ + git \ + tar \ + sqlite3 \ + fontconfig \ + tzdata \ + iproute2 \ + libfreetype6 \ + tini \ + firefox + +# Fix for Firefox? +ENV DISPLAY=:0 + +RUN useradd -m -d /home/container -s /bin/bash container +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file