Fixed script dir for dockerfile
This commit is contained in:
parent
1664b19e31
commit
a97a916c68
@ -1,12 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT_DIR=`dirname $0`
|
||||||
C_ORG=cubetiq
|
C_ORG=cubetiq
|
||||||
C_IMG=calpine-openjdk
|
C_IMG=calpine-openjdk
|
||||||
C_TAG=11
|
C_TAG=11
|
||||||
C_ROOT=${C_ORG}/${C_IMG}:${C_TAG}
|
C_ROOT=${C_ORG}/${C_IMG}:${C_TAG}
|
||||||
|
|
||||||
echo "Starting build for OpenJDK: ${C_ROOT}"
|
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}"
|
echo "Publishing to DockerHub with ${C_ROOT}"
|
||||||
docker push ${C_ROOT}
|
docker push ${C_ROOT}
|
Loading…
Reference in New Issue
Block a user