❇️ Squash the images

This commit is contained in:
Christian Mäder 2018-01-30 14:48:40 +01:00
parent 71200070e7
commit dca64f55f5
No known key found for this signature in database
GPG Key ID: 92FFD0A711F196BB
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ else
fi
echo "🐳 Building the Docker image '${DOCKER_REPO}/netbox:${TAG}' from the branch '${BRANCH}'."
docker build -t "${DOCKER_REPO}/netbox:${TAG}" --build-arg "BRANCH=${BRANCH}" --build-arg "URL=${URL}" --pull ${CACHE} .
docker build --squash -t "${DOCKER_REPO}/netbox:${TAG}" --build-arg "BRANCH=${BRANCH}" --build-arg "URL=${URL}" --pull ${CACHE} .
echo "✅ Finished building the Docker images '${DOCKER_REPO}/netbox:${TAG}'"
if [ "${2}" == "--push" ] ; then