.
This commit is contained in:
commit
dede9ce18d
21 changed files with 485 additions and 0 deletions
19
images/papermc/Containerfile
Normal file
19
images/papermc/Containerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM docker.io/eclipse-temurin:25-jre-alpine
|
||||
EXPOSE 25565
|
||||
|
||||
ENV MINECRAFT_VERSION=26.2
|
||||
|
||||
VOLUME /mnt
|
||||
COPY --chmod=755 entrypoint.sh /entrypoint.sh
|
||||
|
||||
WORKDIR /data
|
||||
RUN apk add --no-cache curl jq
|
||||
RUN curl -s "https://fill.papermc.io/v3/projects/paper/versions/$MINECRAFT_VERSION/builds/latest" \
|
||||
| jq -r '.downloads."server:default".url' \
|
||||
| xargs curl -o server.jar
|
||||
|
||||
RUN printf eula=true > eula.txt
|
||||
RUN java -jar server.jar --initSettings
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["java", "-jar", "server.jar", "--nogui"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue