Can specify java version

This commit is contained in:
Jimmy Allen 2021-01-02 17:41:39 +13:00
parent 4277fffcf5
commit 9f136dff2a
1 changed files with 5 additions and 2 deletions

View File

@ -1,9 +1,12 @@
FROM java:8 ARG JAVA_VERSION=14.0.2
FROM java:${JAVA_VERSION}
ENV MIN_MEM=512M ENV MIN_MEM=512M
ENV MAX_MEM=8G ENV MAX_MEM=1G
ENV STOP="stop" ENV STOP="stop"
ENV JAR=server.jar
COPY ./bin/main /main COPY ./bin/main /main
COPY ./bin/cmd /usr/local/bin/cmd COPY ./bin/cmd /usr/local/bin/cmd
COPY ./entry.sh /entry.sh COPY ./entry.sh /entry.sh