2021-08-25 05:20:14 +00:00
|
|
|
ARG JAVA_VERSION=16
|
2021-01-04 08:39:06 +00:00
|
|
|
FROM openjdk:${JAVA_VERSION}
|
2020-10-13 08:21:37 +00:00
|
|
|
|
|
|
|
ENV MIN_MEM=512M
|
2021-01-02 04:41:39 +00:00
|
|
|
ENV MAX_MEM=1G
|
2020-10-13 08:21:37 +00:00
|
|
|
ENV STOP="stop"
|
2021-01-02 04:41:39 +00:00
|
|
|
ENV JAR=server.jar
|
|
|
|
|
2020-10-13 08:21:37 +00:00
|
|
|
COPY ./bin/main /main
|
|
|
|
COPY ./bin/cmd /usr/local/bin/cmd
|
|
|
|
|
|
|
|
EXPOSE 25565
|
|
|
|
|
|
|
|
VOLUME [ "/server" ]
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/main" ]
|