diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 73b5896..27a3d57 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -52,7 +52,8 @@ jobs: - name: Build and push uses: docker/build-push-action@v3 with: - context: ./${{ matrix.tag }} + context: . + file: ./${{ matrix.tag }}/Dockerfile platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta_graalvm.outputs.tags }} diff --git a/11-EE/Dockerfile b/11-EE/Dockerfile index d5aab73..7fe57d0 100644 --- a/11-EE/Dockerfile +++ b/11-EE/Dockerfile @@ -43,6 +43,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/11-EE/entrypoint.sh b/11-EE/entrypoint.sh deleted file mode 100644 index 5e92f79..0000000 --- a/11-EE/entrypoint.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/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} diff --git a/11/Dockerfile b/11/Dockerfile index 30113f8..4139dd2 100644 --- a/11/Dockerfile +++ b/11/Dockerfile @@ -43,6 +43,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"] \ No newline at end of file diff --git a/11/entrypoint.sh b/11/entrypoint.sh deleted file mode 100644 index 5e92f79..0000000 --- a/11/entrypoint.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/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} diff --git a/17-EE/Dockerfile b/17-EE/Dockerfile index 0ee74b5..92ff450 100644 --- a/17-EE/Dockerfile +++ b/17-EE/Dockerfile @@ -43,6 +43,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"] \ No newline at end of file diff --git a/17/Dockerfile b/17/Dockerfile index 6fc5217..7f453d1 100644 --- a/17/Dockerfile +++ b/17/Dockerfile @@ -43,6 +43,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 deleted file mode 100644 index 9b727f6..0000000 --- a/17/entrypoint.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -cd /home/container - -# Print Java version -java -version - -# Make internal Docker IP address available to processes. -export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` - -# Replace Startup Variables -MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo ":/home/container$ ${MODIFIED_STARTUP}" - -# Run the Server -eval ${MODIFIED_STARTUP} diff --git a/19/Dockerfile b/19/Dockerfile index 110a8a7..9a59288 100644 --- a/19/Dockerfile +++ b/19/Dockerfile @@ -43,6 +43,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"] \ No newline at end of file diff --git a/19/entrypoint.sh b/19/entrypoint.sh deleted file mode 100644 index 9b727f6..0000000 --- a/19/entrypoint.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -cd /home/container - -# Print Java version -java -version - -# Make internal Docker IP address available to processes. -export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` - -# Replace Startup Variables -MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo ":/home/container$ ${MODIFIED_STARTUP}" - -# Run the Server -eval ${MODIFIED_STARTUP} diff --git a/17-EE/entrypoint.sh b/entrypoint.sh similarity index 100% rename from 17-EE/entrypoint.sh rename to entrypoint.sh