GeyserDockerBuilder/Dockerfile
2024-05-31 23:57:32 +02:00

21 lines
327 B
Docker

FROM eclipse-temurin:21-jdk
ARG RUNNABLE_JAR
# create directories
WORKDIR /data
RUN mkdir bin bundle workdir
# add executable files
ADD $RUNNABLE_JAR bin/geyser.jar
ADD run.sh bin/run.sh
# configure max heap size
ENV MAXMEM=1024M
EXPOSE 19132/udp
VOLUME /data/workdir
WORKDIR /data/workdir
CMD ["sh", "/data/bin/run.sh"]