Drop --layers from the build to avoid slow layer commits, and default
PULL_POLICY to missing so the base image is only re-pulled when absent.
This commit is contained in:
1 parent
9275d2c4a4
commit
0920b351b7
2 files changed
+27
-15
No files matched your search
@@ -3,8 +3,7 @@ set -euo pipefail
|
||||
|
||||
IMAGE_NAME="tintounn/my-fedora"
|
||||
IMAGE_TAG="latest"
|
||||
PULL_POLICY="${PULL_POLICY:-always}"
|
||||
PULL_POLICY="${PULL_POLICY:-missing}"
|
||||
|
||||
echo "[INFO] Build de l'image (pull=${PULL_POLICY})..."
|
||||
buildah bud --layers --pull="${PULL_POLICY}" --isolation chroot -t localhost/${IMAGE_NAME}:${IMAGE_TAG} .
|
||||
|
||||
buildah bud --pull="${PULL_POLICY}" --isolation chroot -t localhost/${IMAGE_NAME}:${IMAGE_TAG} .
|
||||
Reference in new issue
Block a user