Skip to content

Commit

Permalink
chore: update Velocity for 1.21 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakShearman committed Jun 16, 2024
1 parent a967023 commit b3cf4af
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FROM --platform=$TARGETPLATFORM azul/zulu-openjdk:21-jre
RUN apt-get update && apt-get install -y wget

# We manually set the Velocity version to avoid bugs
ENV VELOCITY_JAR_URL "https://api.papermc.io/v2/projects/velocity/versions/3.3.0-SNAPSHOT/builds/365/downloads/velocity-3.3.0-SNAPSHOT-365.jar"
ENV VIA_VERSION_JAR_URL "https://github.com/ViaVersion/ViaVersion/releases/download/4.9.2/ViaVersion-4.9.2.jar"
ENV VELOCITY_JAR_URL "https://api.papermc.io/v2/projects/velocity/versions/3.3.0-SNAPSHOT/builds/398/downloads/velocity-3.3.0-SNAPSHOT-398.jar"
#ENV VIA_VERSION_JAR_URL "https://github.com/ViaVersion/ViaVersion/releases/download/4.9.2/ViaVersion-4.9.2.jar"

RUN mkdir /app
WORKDIR /app
Expand All @@ -15,15 +15,16 @@ RUN wget -O velocity.jar $VELOCITY_JAR_URL
COPY run/velocity.toml .
COPY run/server-icon.png .

# Move Core Plugin
# Move Core Plugin, install third-party plugins
RUN mkdir /app/plugins
WORKDIR /app/plugins
COPY build/libs/*-all.jar velocity-core.jar

RUN wget -O viaversion.jar $VIA_VERSION_JAR_URL
COPY run/plugins/viaversion/config.yml viaversion/config.yml
RUN #wget -O viaversion.jar $VIA_VERSION_JAR_URL
#COPY run/plugins/viaversion/config.yml viaversion/config.yml

RUN #wget -O viabackwards.jar https://github.com/ViaVersion/ViaBackwards/releases/download/4.9.1/ViaBackwards-4.9.1.jar
COPY build/libs/*-all.jar velocity-core.jar

# Go back to the base directory for our server
WORKDIR /app

Expand Down

0 comments on commit b3cf4af

Please sign in to comment.