1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00

build: Always pull ubuntu image before starting Docker build

This commit is contained in:
Michael Stucki 2016-03-13 15:18:52 +01:00
parent 608ebb3ca4
commit 682e377f53

4
run.sh
View File

@ -20,6 +20,10 @@ if [ $? -ne 0 ]; then
echo "docker command not found"
exit $?
elif [[ $FORCE_BUILD = 1 ]] || ! echo "$IMAGE_EXISTS" | grep -q "$TAG"; then
# Pull Ubuntu image to be sure it's up to date
echo "Fetching Docker \"ubuntu\" image..."
docker pull ubuntu:14.04
echo "Building Docker image $REPOSITORY:$TAG..."
docker build -t $REPOSITORY:$TAG .