build: allow Docker cache for RPM builds

- Remove --no-cache flag from docker build command
- Faster local builds by reusing cached layers

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Jacquin Antoine
2026-03-01 01:51:59 +01:00
parent 3e9ff25033
commit e8c57dbf64

View File

@ -88,7 +88,7 @@ debug: clean all
## package: Build all RPM packages (el8, el9, el10) ## package: Build all RPM packages (el8, el9, el10)
package: package:
mkdir -p $(DIST_DIR)/rpm/el8 $(DIST_DIR)/rpm/el9 $(DIST_DIR)/rpm/el10 mkdir -p $(DIST_DIR)/rpm/el8 $(DIST_DIR)/rpm/el9 $(DIST_DIR)/rpm/el10
docker build --no-cache --target output -t mod_reqin_log:packager \ docker build --target output -t mod_reqin_log:packager \
--build-arg VERSION=$(VERSION) \ --build-arg VERSION=$(VERSION) \
-f Dockerfile.package . -f Dockerfile.package .
@echo "Extracting packages from Docker image..." @echo "Extracting packages from Docker image..."