This is the command i ran
bentoml containerize clustering_and_anomaly_detection:cophrbckrskf2uhl
INFO: Building OCI-compliant image for clustering_and_anomaly_detection:cophrbckrskf2uhl with docker
Dockerfile:48
--------------------
46 | COPY --chown=bentoml:bentoml ./env/python ./env/python/
47 | # install python packages with install.sh
48 | >>> RUN --mount=type=cache,target=/root/.cache/uv bash -euxo pipefail /home/bentoml/bento/env/python/install.sh
49 | COPY --chown=bentoml:bentoml . ./
50 |
--------------------
ERROR: failed to solve: process "/bin/sh -c bash -euxo pipefail /home/bentoml/bento/env/python/install.sh" did not complete successfully: exit code: 1
ERROR:
Encountered exception while trying to building image: Command '['C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker.EXE', 'build', '--tag', 'clustering_and_anomaly_detection:cophrbckrskf2uhl', '--file', 'C:\\Users\\exf\\AppData\\Local\\Temp\\tmpi0_1xnkhfsTempFS\\env\\docker\\Dockerfile', 'C:\\Users\\exf\\AppData\\Local\\Temp\\tmpi0_1xnkhfsTempFS\\']' returned non-zero exit status 1.
Traceback (most recent call last):
File "D:\NEC-POC project poc\NEC Current Project\.venv\lib\site-packages\bentoml\_internal\container\__init__.py", line 231, in build
return builder.build(**kwargs)
File "D:\NEC-POC project poc\NEC Current Project\.venv\lib\site-packages\bentoml\_internal\container\base.py", line 190, in build
raise BentoMLException(str(e)) from None
bentoml.exceptions.BentoMLException: Command '['C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker.EXE', 'build', '--tag', 'clustering_and_anomaly_detection:cophrbckrskf2uhl', '--file', 'C:\\Users\\exf\\AppData\\Local\\Temp\\tmpi0_1xnkhfsTempFS\\env\\docker\\Dockerfile', 'C:\\Users\\exf\\AppData\\Local\\Temp\\tmpi0_1xnkhfsTempFS\\']' returned non-zero exit status 1.
in my service.py file i have 4 api's in which three are clustering models and one is anomaly it is working in my local but when i ran build bento it comming succefully when i am contanzering this error is raising this is my bentofile.yaml file
service: "service.py:clustering_and_anomaly_detection"
labels:
owner: bentoml-team
project: gallery
include:
- "*.py"
python:
packages:
- scikit-learn
- pandas
- mlflow