Skip to content

Commit

Permalink
🚀 use temurin jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaNecron committed Nov 28, 2023
1 parent a8afd58 commit 58b1385
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
23 changes: 18 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,27 @@
# tier 2: more runtimes such as kotlin, java, csharp, etc..
# tier 3: rarely used languages like brainfuck, whitespace, moo, ...

FROM --platform=${BUILDPLATFORM} debian:bookworm AS tier-1
FROM --platform=${BUILDPLATFORM} debian:bookworm-slim AS base

ARG DEBIAN_FRONTEND=noninteractive
RUN echo 'deb http://deb.debian.org/debian bookworm-backports main\n' >> /etc/apt/sources.list
RUN echo 'deb http://deb.debian.org/debian bullseye main' >> /etc/apt/sources.list
RUN apt update && apt install -y gcc-13 python3.11 python2.7 clang-15 fpc pypy3 && rm -rf /var/lib/apt/lists/*

RUN apt update && apt install -y --no-install-recommends wget apt-transport-https ca-certificates

RUN mkdir -p /etc/apt/keyrings
RUN wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc

COPY igloo-runner.list /etc/apt/sources.list.d/igloo-runner.list

RUN apt clean

FROM --platform=${BUILDPLATFORM} base AS tier-1

ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install --no-install-recommends -y gcc-12 python3.11 python2.7 clang-15 fpc pypy3

FROM --platform=${BUILDPLATFORM} tier-1 AS tier-2

ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y golang-1.21-go mono-runtime openjdk-17-jdk openjdk-11-jdk openjdk-8-jdk ruby3.1 && rm -rf /var/lib/apt/lists/*

RUN apt update && apt install --no-install-recommends -y golang-1.21-go mono-runtime temurin-21-jdk temurin-17-jdk temurin-11-jdk temurin-8-jdk ruby3.1
3 changes: 3 additions & 0 deletions igloo-runner.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
deb http://deb.debian.org/debian bookworm-backports main
deb http://deb.debian.org/debian bullseye main
deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb bookworm main

0 comments on commit 58b1385

Please sign in to comment.