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 \
|
RUN git config --global user.email "papermcbuilder@vanwa.ch"
|
||||||
openjdk8 \
|
RUN git config --global user.name "Vanwa papermc builder"
|
||||||
git \
|
|
||||||
|
RUN apt update && apt install -y \
|
||||||
|
patch \
|
||||||
maven
|
maven
|
||||||
|
|
||||||
ENV BUILDTOOLS_VERSION=abd1c566d8cd758bac3a9d67543b719d4b9ab673
|
ENV VERSION=0ea3083817707d792ebac246895455a0aa0d3425
|
||||||
RUN git clone https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
|
RUN git clone https://github.com/PaperMC/Paper.git
|
||||||
|
|
||||||
WORKDIR /buildtools
|
WORKDIR /Paper
|
||||||
RUN git checkout "$BUILDTOOLS_VERSION"
|
RUN git checkout "$VERSION"
|
||||||
RUN mvn package
|
RUN ./paper jar
|
||||||
|
RUN mv /Paper/Paper-Server/target/paper-*.jar /Paper/Paper-Server/target/paper.jar
|
||||||
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 /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 \
|
RUN apk add --no-cache \
|
||||||
openjdk8 \
|
openjdk11-jre-headless \
|
||||||
openssl
|
openssl
|
||||||
|
|
||||||
RUN addgroup minecraft -g 2222
|
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
|
# Volumes
|
||||||
- `/var/lib/minecraft/plugins`
|
- `/var/lib/minecraft/plugins`
|
||||||
|
@ -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/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