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}