FROM ubuntu:noble ENV DEBIAN_FRONTEND=noninteractive # install prerequisites RUN apt update \ && apt install -y --no-install-recommends \ curl ca-certificates \ jq \ libxml2-utils \ && apt autoremove \ && apt clean \ && rm -rf /var/lib/apt/lists/* # Remove default ubuntu user RUN userdel -r ubuntu \ && useradd --create-home -u 1000 minecraft \ && mkdir -p /data \ && chown -R 1000:1000 /data USER minecraft RUN curl -sL https://github.com/Jabba-Team/jabba/raw/main/install.sh | bash \ && . ~/.jabba/jabba.sh USER root COPY ./scripts/init / COPY ./scripts/mc /usr/local/bin RUN chmod +x /init && chmod +x /usr/local/bin/mc CMD ["/init"]