Switch to amazon coretto java since papermc needs it
Some checks failed
ci/woodpecker/push/build/2 Pipeline is pending
ci/woodpecker/push/build/3 Pipeline is pending
ci/woodpecker/push/build/1 Pipeline failed

This commit is contained in:
Ryan Voots 2024-09-17 14:48:59 -04:00
parent 4caf0c0f99
commit 21aef030db

View file

@ -4,7 +4,12 @@
FROM debian:sid AS build
RUN ls -lah /etc/apt/sources.list.d/
RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list.d/debian.sources
RUN apt update && apt install -y curl jq bash openjdk-21-jdk openjdk-21-jre
RUN apt update && apt install -y curl jq bash sudo wget gnupg2
RUN wget -O - https://apt.corretto.aws/corretto.key | gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | tee /etc/apt/sources.list.d/corretto.list
RUN apt-get update && apt-get install -y java-21-amazon-corretto-jdk libxi6 libxtst6 libxrender1
LABEL Marc Tönsing <marc@marc.tv>
@ -28,7 +33,13 @@ RUN java -Dpaperclip.patchonly=true -jar /opt/minecraft/paperclip.jar; exit 0
########################################################
FROM debian:sid AS runtime
RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list.d/debian.sources
RUN apt update && apt install -y curl jq bash openjdk-21-jre openjdk-21-jdk sudo
RUN apt update && apt install -y curl jq bash sudo wget gnupg2
RUN wget -O - https://apt.corretto.aws/corretto.key | gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | tee /etc/apt/sources.list.d/corretto.list
RUN apt-get update && apt-get install -y java-21-amazon-corretto-jdk libxi6 libxtst6 libxrender1
# Working directory
WORKDIR /data