Skip to content

Commit

Permalink
java version selection actually works now
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyPrindel committed Sep 9, 2023
1 parent 2b6aa81 commit 754e4ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ ENV JAR_NAME="server.jar"
ENV AUTO_RESTART="true"
ENV PUID=1000
ENV PGID=1000
ENV JAVA_VERSION=17

COPY defaults /defaults

ARG JAVA_VERSION=17
RUN apk add --no-cache --update openjdk${JAVA_VERSION};
2 changes: 2 additions & 0 deletions defaults/startserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#!/bin/bash

sudo apk add --no-cache --update openjdk${JAVA_VERSION}

cd /server/
java ${JAVA_ARGS} -jar ${JAR_NAME}

Expand Down

0 comments on commit 754e4ae

Please sign in to comment.