This commit is contained in:
Timo Ley 2021-09-21 16:41:00 +02:00
commit 5464359251
2 changed files with 15 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM adoptopenjdk/openjdk16:alpine-jre
RUN apk add --no-cache curl && curl https://versions.velocitypowered.com/download/3.0.1.jar --output /run/velocity.jar
COPY ./start.sh /start.sh
RUN chmod +x /start.sh
VOLUME ["/data"]
ENTRYPOINT ["sh", "/start.sh"]

4
start.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
cd /data
java -Xmx$MAXRAM -jar /run/velocity.jar