infra/images/velocity/Containerfile
2026-08-20 17:16:00 +02:00

18 lines
503 B
Docker

FROM docker.io/eclipse-temurin:25-jre-alpine
EXPOSE 25565
ENV VELOCITY_VERSION="4.1.0-SNAPSHOT"
VOLUME /mnt
WORKDIR /data
RUN apk add --no-cache curl jq
RUN curl -s "https://fill.papermc.io/v3/projects/velocity/versions/$VELOCITY_VERSION/builds/latest" \
| jq -r '.downloads."server:default".url' \
| xargs curl -o server.jar
COPY ./velocity.toml /data
COPY ./forwarding.secret /data
COPY --chmod=755 entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["java", "-jar", "server.jar"]