initial push
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m36s

This commit is contained in:
2025-03-22 18:56:54 -04:00
commit 771700d6c8
8 changed files with 253 additions and 0 deletions

32
Dockerfile Normal file
View File

@ -0,0 +1,32 @@
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"]