added Dockerfile, example compose and setup script

This commit is contained in:
prinoX
2025-02-08 14:24:12 +01:00
parent df0fe0bbed
commit 2dc0974957
5 changed files with 191 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
FROM alpine:latest
ENV MINECRAFT_VERSION= \
PAPER_BUILD="latest" \
EULA="false" \
MC_RAM=""
RUN apk update && \
apk add openjdk21-jre && \
apk add bash && \
apk add curl && \
apk add jq
RUN addgroup -S servergrp
RUN adduser -S server -G servergrp -D -u 1000
USER server
RUN mkdir /home/server/instance
#RUN chown -hR server:servergrp /home/server/instance
COPY setup.sh /home/server/
CMD ["bash", "/home/server/setup.sh"]
EXPOSE 25565
VOLUME /home/server/instance