From 9f136dff2a50f72995e4f2f4e63154e05d8a97ed Mon Sep 17 00:00:00 2001 From: Jimmy Allen Date: Sat, 2 Jan 2021 17:41:39 +1300 Subject: [PATCH] Can specify java version --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cb4d81f..791f616 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,12 @@ -FROM java:8 +ARG JAVA_VERSION=14.0.2 +FROM java:${JAVA_VERSION} ENV MIN_MEM=512M -ENV MAX_MEM=8G +ENV MAX_MEM=1G ENV STOP="stop" +ENV JAR=server.jar + COPY ./bin/main /main COPY ./bin/cmd /usr/local/bin/cmd COPY ./entry.sh /entry.sh