Skip to content

BentoML docker image size #1511

Answered by parano
mat-berna asked this question in Q&A
Mar 17, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@Berna4 yes there's a slim image you can use, see documentation here: https://docs.bentoml.org/en/latest/concepts.html?highlight=slim#using-other-docker-base-images

Unlike the default debian based docker image, you will need to use your python version and bentoml version to find the right slim docker image to use, e.g.:

@env(docker_base_image="bentoml/model-server:0.12.0-slim-py37")
@artifacts([SklearnModelArtifact('model')])
class ExamplePredictionService(BentoService):
  ...```

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mat-berna
Comment options

Answer selected by mat-berna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants