fix(neuron): increase ulimit when building image

The base image used to compile the rust components seems to have a low
ulimit for opened files, which leads to errors during compilation.
This commit is contained in:
David Corvoysier 2025-02-17 15:22:36 +00:00 committed by Nicolas Patry
parent 0b7c7c3d18
commit 542eee6ca7
No known key found for this signature in database
GPG Key ID: 4242CEF24CB6DBF9

View File

@ -22,6 +22,7 @@ VERSION := $(shell gawk 'match($$0, /^version = "(.*)"/, a) {print a[1]}' ${root
image:
docker build --rm -f ${root_dir}/Dockerfile.neuron \
--ulimit nofile=100000:100000 \
--build-arg VERSION=$(VERSION) \
-t text-generation-inference:$(VERSION)-neuron ${root_dir}
docker tag text-generation-inference:$(VERSION)-neuron text-generation-inference:latest-neuron