From ca7cf5c54092429c5f60f893dc37c3c4e8104f6c Mon Sep 17 00:00:00 2001 From: RikoDEV <18230443+RikoDEV@users.noreply.github.com> Date: Sun, 28 Nov 2021 09:53:44 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20build=20=F0=9F=90=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 17/Dockerfile | 2 +- 17/entrypoint.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 17/entrypoint.sh diff --git a/17/Dockerfile b/17/Dockerfile index 9956fc9..798f653 100644 --- a/17/Dockerfile +++ b/17/Dockerfile @@ -19,6 +19,6 @@ ENV USER=container HOME=/home/container WORKDIR /home/container -COPY ././entrypoint.sh /entrypoint.sh +COPY ./entrypoint.sh /entrypoint.sh CMD ["/bin/bash", "/entrypoint.sh"] diff --git a/17/entrypoint.sh b/17/entrypoint.sh new file mode 100644 index 0000000..5e92f79 --- /dev/null +++ b/17/entrypoint.sh @@ -0,0 +1,12 @@ +#!/bin/bash +cd /home/container + +# Output Current Java Version +java -version ## only really needed to show what version is being used. Should be changed for different applications + +# Replace Startup Variables +MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` +echo ":/home/container$ ${MODIFIED_STARTUP}" + +# Run the Server +${MODIFIED_STARTUP}