fix: workaround for bug in patch

This commit is contained in:
Seán C McCord 2024-01-17 13:10:39 -05:00
parent 98f9d0dfa6
commit a9266a413c
No known key found for this signature in database
GPG Key ID: FC678714ACA347CB
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,8 @@
# - TARGET defaults to "package"
# - EXTRA_ARGS will be blindly injected
# - packages may also define a "test" layer
# - the ulimit line is to workaround a bug in patch when the nofile limit is too large:
# https://savannah.gnu.org/bugs/index.php?62958
# TODO:
# - try to disable networking on fetch layers with something like:
# $(if $(filter fetch,$(lastword $(subst -, ,$(TARGET)))),,--network=none)
@ -29,6 +31,7 @@ define build
SOURCE_DATE_EPOCH=1 \
$(BUILDER) \
build \
--ulimit nofile=2048:16384 \
-t $(REGISTRY)/$(NAME):$(VERSION) \
--build-arg REGISTRY=$(REGISTRY) \
--platform $(PLATFORM) \