2021-01-02 04:41:39 +00:00
|
|
|
ARG JAVA_VERSION=14.0.2
|
|
|
|
FROM java:${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
|
|
|
|
COPY ./entry.sh /entry.sh
|
|
|
|
|
|
|
|
EXPOSE 25565
|
|
|
|
|
|
|
|
VOLUME [ "/server" ]
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/main" ]
|