GeyserDockerBuilder/Dockerfile

21 lines
327 B
Docker
Raw Normal View History

2023-04-07 15:19:09 +02:00
FROM eclipse-temurin:17-jdk
2023-04-07 16:04:06 +02:00
ARG RUNNABLE_JAR
2023-04-07 15:19:09 +02:00
# create directories
WORKDIR /data
RUN mkdir bin bundle workdir
# add executable files
2023-04-07 16:04:06 +02:00
ADD $RUNNABLE_JAR bin/geyser.jar
2023-04-07 15:19:09 +02:00
ADD run.sh bin/run.sh
# configure max heap size
ENV MAXMEM=1024M
2023-04-07 16:04:06 +02:00
EXPOSE 19132/udp
2023-04-07 15:19:09 +02:00
VOLUME /data/workdir
WORKDIR /data/workdir
CMD ["sh", "/data/bin/run.sh"]