use latest paper version

This commit is contained in:
Sebastian Hugentobler 2021-02-18 15:31:55 +01:00
parent 388a4b4f07
commit 729223a37a
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
3 changed files with 25 additions and 26 deletions

View File

@ -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

View File

@ -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`
@ -12,7 +12,7 @@ A [Minecraft](https://minecraft.net) server running on [Spigot](https://www.spig
# Environment Variables # Environment Variables
## SERVER_NAME ## SERVER_NAME
The name of the server. The name of the server.
## MOTD ## MOTD
Message of the day. Message of the day.
@ -33,7 +33,7 @@ One of:
- 1: Ops can bypass spawn protection. - 1: Ops can bypass spawn protection.
- 2: Ops can use /clear, /difficulty, /effect, /gamemode, /gamerule, /give, and /tp, and can edit command blocks. - 2: Ops can use /clear, /difficulty, /effect, /gamemode, /gamerule, /give, and /tp, and can edit command blocks.
- 3: Ops can use /ban, /deop, /kick, and /op. - 3: Ops can use /ban, /deop, /kick, and /op.
- 4: Ops can use /stop. - 4: Ops can use /stop.
## ALLOW_NETHER ## ALLOW_NETHER
- default: true - default: true
@ -43,7 +43,7 @@ Whether players can travel to the Nether.
## ALLOW_FLIGHT ## ALLOW_FLIGHT
- default: false - default: false
Allows users to use flight on your server while in Survival mode, if they have a mod that provides flight installed. Allows users to use flight on your server while in Survival mode, if they have a mod that provides flight installed.
No effect in Creative mode. No effect in Creative mode.
## ANNOUNCE_PLAYER_ACHIEVEMENTS ## ANNOUNCE_PLAYER_ACHIEVEMENTS
@ -64,7 +64,7 @@ One of:
- FLAT: A flat world with no features, meant for building. - FLAT: A flat world with no features, meant for building.
- LARGEBIOMES: Same as default but all biomes are larger. - LARGEBIOMES: Same as default but all biomes are larger.
- AMPLIFIED: Same as default but world-generation height limit is increased. - AMPLIFIED: Same as default but world-generation height limit is increased.
- CUSTOMIZED: Same as default unless generator-settings is set to a preset. - CUSTOMIZED: Same as default unless generator-settings is set to a preset.
## MAX_BUILD_HEIGHT ## MAX_BUILD_HEIGHT
- default: 256 - default: 256
@ -74,7 +74,7 @@ The maximum height in which building is allowed. Terrain may still naturally gen
## SPAWN_NPCS ## SPAWN_NPCS
- default: true - default: true
Determines whether villagers will be spawned. Determines whether villagers will be spawned.
## SPAWN_ANIMALS ## SPAWN_ANIMALS
- default: true - default: true
@ -84,7 +84,7 @@ Determines if [animals](http://minecraft.gamepedia.com/Mob#Passive) will be able
## SPAWN_MONSTERS ## SPAWN_MONSTERS
- default: true - default: true
Determines if monsters will be spawned. Determines if monsters will be spawned.
## GENERATE_STRUCTURES ## GENERATE_STRUCTURES
- default: true - default: true
@ -115,7 +115,7 @@ One of:
- 0: Peaceful - 0: Peaceful
- 1: Easy - 1: Easy
- 2: Normal - 2: Normal
- 3: Hard - 3: Hard
## GAMEMODE ## GAMEMODE
- default: 0 - default: 0
@ -126,7 +126,7 @@ One of:
- 0: Survival - 0: Survival
- 1: Creative - 1: Creative
- 2: Adventure - 2: Adventure
- 3: Spectator - 3: Spectator
## ONLINE_MODE ## ONLINE_MODE
- default: true - default: true
@ -141,7 +141,7 @@ If non-zero, players are kicked from the server if they are idle for more than t
## MAX_PLAYERS ## MAX_PLAYERS
- default: 20 - default: 20
The maximum number of players that can play on the server at the same time. The maximum number of players that can play on the server at the same time.
## VIEW_DISTANCE ## VIEW_DISTANCE
- default: 10 - default: 10

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/spigot.jar exec s6-setuidgid minecraft java -Xms${MIN_RAM:-512M} -Xmx${MAX_RAM:-512M} -XX:+UseG1GC -jar /var/lib/minecraft/paper.jar