FROM java:8
ENV MIN_MEM=512M
ENV MAX_MEM=512M
ENV STOP="stop"
COPY ./main /main
COPY ./cmd /usr/local/bin/cmd
COPY ./entry.sh /entry.sh
EXPOSE 25565
VOLUME [ "/server" ]
ENTRYPOINT [ "/main" ]