All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m36s
32 lines
690 B
Docker
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"] |