minecraftimage/Dockerfile

19 lines
262 B
Docker

ARG JAVA_VERSION=14.0.2
FROM java:${JAVA_VERSION}
ENV MIN_MEM=512M
ENV MAX_MEM=1G
ENV STOP="stop"
ENV JAR=server.jar
COPY ./bin/main /main
COPY ./bin/cmd /usr/local/bin/cmd
COPY ./entry.sh /entry.sh
EXPOSE 25565
VOLUME [ "/server" ]
ENTRYPOINT [ "/main" ]