1 2 3 4 5 6
#!/bin/bash from="${DOCKER_REPO%/*}/functest-core:euphrates" sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile exit $?