Question: How to set EXTRA_PIP_INSTALL_ARGS in Dockerfile created with BentoService.save() #1802
Unanswered
devFallingstar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello teams,
What I did
I created custom class of bentoml.BentoService and trying to save and build with docker. Sample code is like below:
and call
save()
function like below:Question
In the
saved_path
, I foundDockerfile
and I supposed there should beEXTRA_PIP_INSTALL_ARGS
with--extra_index_url="abc.xyz" --trusted_host="bbc.xyz"
butEXTRA_PIP_INSTALL_ARGS
was empty.I thought it would create
EXTRA_PIP_INSTALL_ARGS
automatically inDockerfile
since I added@bentoml.env
annotation to the class. Did I wrong something? Or should I put another options to get properDockerfile
?Beta Was this translation helpful? Give feedback.
All reactions