docker images: disable docker cache when building

Disable docker cache when building the base image. This image is
quick to build and disabling the cache doesn't add much to overall
build times. This is also consistent with how the dervied docker
images are built (cache is disabled there).

TESTS
=====

Rebuild base image and make sure there are no errors, using both
CentOS & debian docker files.

Story: 2009897
Task: 44800

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: Id03d4eab084fd58b5906964b3ab991b52507a045
This commit is contained in:
Davlet Panech 2022-03-17 16:00:53 -04:00
parent 0d9a26339e
commit 57ea195a76

View File

@ -352,6 +352,10 @@ fi
if [ ! -z "$PROXY" ]; then
BUILD_ARGS+=(--build-arg http_proxy=$PROXY)
fi
# Don't use docker cache
BUILD_ARGS+=("--no-cache")
BUILD_ARGS+=(--tag ${IMAGE_NAME} ${BUILDDIR})
# Build base image