use latest paper version
This commit is contained in:
parent
388a4b4f07
commit
729223a37a
29
Dockerfile
29
Dockerfile
@ -1,27 +1,26 @@
|
||||
FROM alpine:3.13 as builder
|
||||
FROM openjdk:11 as builder
|
||||
|
||||
RUN apk --no-cache add \
|
||||
openjdk8 \
|
||||
git \
|
||||
RUN git config --global user.email "papermcbuilder@vanwa.ch"
|
||||
RUN git config --global user.name "Vanwa papermc builder"
|
||||
|
||||
RUN apt update && apt install -y \
|
||||
patch \
|
||||
maven
|
||||
|
||||
ENV BUILDTOOLS_VERSION=abd1c566d8cd758bac3a9d67543b719d4b9ab673
|
||||
RUN git clone https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
|
||||
ENV VERSION=0ea3083817707d792ebac246895455a0aa0d3425
|
||||
RUN git clone https://github.com/PaperMC/Paper.git
|
||||
|
||||
WORKDIR /buildtools
|
||||
RUN git checkout "$BUILDTOOLS_VERSION"
|
||||
RUN mvn package
|
||||
|
||||
ENV SPIGOT_VERSION=1.16.5
|
||||
RUN java -jar target/BuildTools.jar --rev "$SPIGOT_VERSION"
|
||||
RUN mv spigot-$SPIGOT_VERSION.jar spigot.jar
|
||||
WORKDIR /Paper
|
||||
RUN git checkout "$VERSION"
|
||||
RUN ./paper jar
|
||||
RUN mv /Paper/Paper-Server/target/paper-*.jar /Paper/Paper-Server/target/paper.jar
|
||||
|
||||
FROM thallian/confd-env:latest
|
||||
|
||||
COPY --from=builder /buildtools/spigot.jar /var/lib/minecraft/spigot.jar
|
||||
COPY --from=builder /Paper/Paper-Server/target/paper.jar /var/lib/minecraft/paper.jar
|
||||
|
||||
RUN apk add --no-cache \
|
||||
openjdk8 \
|
||||
openjdk11-jre-headless \
|
||||
openssl
|
||||
|
||||
RUN addgroup minecraft -g 2222
|
||||
|
@ -1,4 +1,4 @@
|
||||
A [Minecraft](https://minecraft.net) server running on [Spigot](https://www.spigotmc.org/).
|
||||
A [Minecraft](https://minecraft.net) server running on [Paper](https://papermc.io/).
|
||||
|
||||
# Volumes
|
||||
- `/var/lib/minecraft/plugins`
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
|
||||
cd /var/lib/minecraft
|
||||
exec s6-setuidgid minecraft java -Xms${MIN_RAM:-512M} -Xmx${MAX_RAM:-512M} -XX:+UseG1GC -jar /var/lib/minecraft/spigot.jar
|
||||
exec s6-setuidgid minecraft java -Xms${MIN_RAM:-512M} -Xmx${MAX_RAM:-512M} -XX:+UseG1GC -jar /var/lib/minecraft/paper.jar
|
||||
|
Loading…
Reference in New Issue
Block a user