hotdog/scripts/build

18 lines
251 B
Text
Raw Permalink Normal View History

2020-11-01 16:31:37 +01:00
#!/bin/sh -eu
tag=latest
2020-11-01 16:31:37 +01:00
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":"$tag" "$contextdir"