dockercraft/Dockerfile
Jeremy McClure 771700d6c8
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m36s
initial push
2025-03-22 18:56:54 -04:00

32 lines
690 B
Docker

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"]