minecraftimage/Dockerfile

17 lines
234 B
Docker
Raw Normal View History

2021-01-04 08:39:06 +00:00
ARG JAVA_VERSION=11
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" ]