1
0
mirror of https://github.com/stucki/docker-lineageos synced 2025-01-09 17:39:47 -05:00

docker: Use the cache during build

This commit is contained in:
Michael Stucki 2015-03-03 22:10:03 +01:00
parent 0f61d93e3a
commit e7583870b2

2
run.sh
View File

@ -20,7 +20,7 @@ if [ $? -ne 0 ]; then
exit $?
elif [[ -z $IMAGE_EXISTS ]] || [[ $FORCE_BUILD = 1 ]]; then
echo "Building Docker image $REPOSITORY..."
docker build --no-cache --rm -t $REPOSITORY .
docker build -t $REPOSITORY .
fi
# With the given name $CONTAINER, reconnect to running container, start