dockerfiles/sh/docker.sh

11 lines
182 B
Bash
Raw Normal View History

2021-09-14 12:59:53 +00:00
#!/bin/sh
op=`basename $0 .sh`
for context in $*; do
if [ "$op" == "build" ]; then
extra=" -t $context:latest"
else
extra=":latest"
fi
docker $op $context$extra
done