박종원
01/17/2024, 9:04 AMbentoml.bentos.build(
service="test.py:svc",,
include=[],
exclude=[], # files to exclude can also be specified with a .bentoignore file
labels={
# "foo": "bar",
# "team": "abc"
},
python=dict(
packages=["pandas", "numpy", "pydantic", model_package],
),
docker=dict(
distro="debian",
python_version="3.10",
env={"framework": "scikit-learn"},
),
)
in test.py
i want to use env variable like this:
framework = os.environ.get("framework")
however it fails to build because i cannot get env variable.
env={"framework": "scikit-learn"},
Isn't it correct?