papermc-build/os-base/Dockerfile
Ryan Voots 07068206f2
Some checks failed
ci/woodpecker/push/base-cont Pipeline was successful
ci/woodpecker/push/build/2 Pipeline failed
ci/woodpecker/push/build/1 Pipeline failed
ci/woodpecker/push/discord Pipeline was successful
Try to do this in another way
2024-12-04 11:55:35 -05:00

16 lines
866 B
Docker
Executable file

########################################################
############## We use a java base image ################
########################################################
FROM debian:sid
# Set environment variables to avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
ENV APT_LISTCHANGES_FRONTEND=none
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 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