Custom docker image - conda dependency #923
-
Hi Everyone, While creating custom docker image as a base image for BentoML server, we don't need to have conda dependency. I got this confirmed from Slack channel. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, that's correct, BentoML will just ignore the conda dependencies specified in the BentoService class if Also see my reply in the other thread here: #532 (comment)
|
Beta Was this translation helpful? Give feedback.
-
The real hard requirement for a docker base image for BentoML, is that it has to meet at least one of the two requirements below:
For the sake of consistency and reproducibility, it is always recommended to use docker base image with conda installed. The only case to use a docker base image without conda is that - 1) you can make sure the python version is consistent across your team from development to training and serving, 2) you have built robust CI/CD pipeline to test the docker images created with BentoML, 3) you don't need conda to install dependencies, and 4) you have a good reason to not install conda in your docker base image(security, docker image size, etc) |
Beta Was this translation helpful? Give feedback.
The real hard requirement for a docker base image for BentoML, is that it has to meet at least one of the two requirements below:
bash
,conda
- will automatically download the right python version and install pip in this casebash
,pip
,python
- user will need to ensure the python install on docker base image matches the python version used to save the BentoService. And no conda dependencies are specified in the BentoService.For the sake of consistency and reproducibility, it is always recommended to use docker base image with conda installed. The only case to use a docker base image without conda is that - 1) you can make sure the python version is consistent across your team from dev…