forked from TheHomecraft/tools
Add earthly/java.earthfile
This commit is contained in:
12
earthly/java.earthfile
Normal file
12
earthly/java.earthfile
Normal file
@@ -0,0 +1,12 @@
|
||||
VERSION 0.8
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
java:
|
||||
RUN apt update
|
||||
RUN apt install -y wget gpg apt-transport-https
|
||||
RUN wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public \
|
||||
| gpg --dearmor \
|
||||
| tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
|
||||
RUN echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" \
|
||||
| tee /etc/apt/sources.list.d/adoptium.list
|
||||
RUN apt update
|
||||
Reference in New Issue
Block a user