From a97a916c684ad8a974a49a66b5171d35e679a4c6 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Wed, 14 Jul 2021 21:36:39 +0700 Subject: [PATCH] Fixed script dir for dockerfile --- 11/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/11/build.sh b/11/build.sh index b4c7c3a..3e4eebd 100755 --- a/11/build.sh +++ b/11/build.sh @@ -1,12 +1,13 @@ #!/bin/sh +SCRIPT_DIR=`dirname $0` C_ORG=cubetiq C_IMG=calpine-openjdk C_TAG=11 C_ROOT=${C_ORG}/${C_IMG}:${C_TAG} echo "Starting build for OpenJDK: ${C_ROOT}" -docker build . -t ${C_ROOT} +docker build -f $SCRIPT_DIR/Dockerfile . -t ${C_ROOT} echo "Publishing to DockerHub with ${C_ROOT}" docker push ${C_ROOT} \ No newline at end of file