16 lines
239 B
Text
16 lines
239 B
Text
|
|
#!/bin/sh -eu
|
||
|
|
|
||
|
|
cd "$RUN_DIR"
|
||
|
|
|
||
|
|
contextdir="$RUN_DIR"/docker
|
||
|
|
image=$(cat "$contextdir"/.dockerimage)
|
||
|
|
|
||
|
|
if [ -z "$image" ]; then
|
||
|
|
echo >&2 'image name not found.'
|
||
|
|
exit 2
|
||
|
|
fi
|
||
|
|
|
||
|
|
set -x
|
||
|
|
|
||
|
|
docker build "$@" --tag "$image":latest "$contextdir"
|