Jean-Baptiste Lemoine
05/01/2024, 2:05 PMbentoml containerize, I can use the --build-arg option, but is there an equivalent for the bentoml deploy command? Thanks for your help.Jian Shen Yap
05/01/2024, 2:21 PMJean-Baptiste Lemoine
05/01/2024, 2:22 PMbentoml containerize --build-arg SRC_DIR=some-dir-nameJean-Baptiste Lemoine
05/01/2024, 2:31 PM{% extends bento_base_template %}
{% block SETUP_BENTO_COMPONENTS %}
ARG SRC_DIR
COPY --chown=bentoml:bentoml ./src/$SRC_DIR/pyproject.toml ./src/$SRC_DIR/poetry.lock ./env/python/src/
# other things here
{% endblock %}Jian Shen Yap
05/01/2024, 2:35 PMENV works for you? environment variables can be injected into build phaseJian Shen Yap
05/01/2024, 2:37 PM--env flagJean-Baptiste Lemoine
05/01/2024, 2:49 PMJian Shen Yap
05/01/2024, 2:50 PMJian Shen Yap
05/01/2024, 2:51 PM--env in CLI, as well as through the UI in bentocloudJean-Baptiste Lemoine
05/01/2024, 2:51 PM