initial push
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m36s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m36s
This commit is contained in:
32
Dockerfile
Normal file
32
Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user