push to spigotmc 1.16.5

This commit is contained in:
Sebastian Hugentobler 2021-02-18 13:32:55 +01:00
parent b0ef21e3b4
commit 388a4b4f07
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
2 changed files with 16 additions and 6 deletions

View File

@ -1,14 +1,24 @@
FROM alpine:3.12 as builder FROM alpine:3.13 as builder
RUN apk --no-cache add \ RUN apk --no-cache add \
openssl \ openjdk8 \
curl git \
maven
RUN curl -L -o /paper.jar https://papermc.io/api/v1/paper/1.16.2/159/download ENV BUILDTOOLS_VERSION=abd1c566d8cd758bac3a9d67543b719d4b9ab673
RUN git clone https://hub.spigotmc.org/stash/scm/spigot/buildtools.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
FROM thallian/confd-env:latest FROM thallian/confd-env:latest
COPY --from=builder /paper.jar /var/lib/minecraft/paper.jar COPY --from=builder /buildtools/spigot.jar /var/lib/minecraft/spigot.jar
RUN apk add --no-cache \ RUN apk add --no-cache \
openjdk8 \ openjdk8 \

View File

@ -1,4 +1,4 @@
#!/usr/bin/with-contenv sh #!/usr/bin/with-contenv sh
cd /var/lib/minecraft cd /var/lib/minecraft
exec s6-setuidgid minecraft java -Xms${MIN_RAM:-512M} -Xmx${MAX_RAM:-512M} -XX:+UseG1GC -jar /var/lib/minecraft/paper.jar exec s6-setuidgid minecraft java -Xms${MIN_RAM:-512M} -Xmx${MAX_RAM:-512M} -XX:+UseG1GC -jar /var/lib/minecraft/spigot.jar