Replies: 2 comments 1 reply
-
What are you running on port 6000? If you are running a separate ASGI app on such port, you probably need custom dockerfile and expose that PORT via the dockerfile. See https://docs.bentoml.org/en/latest/guides/containerization.html#dockerfile-template
|
Beta Was this translation helpful? Give feedback.
-
i could see the file structure, where the docker file is create when model is converted to bentoml local format.
is there a way to modify in bentoml.bentos.build python function |
Beta Was this translation helpful? Give feedback.
-
When i containerize a model by default its assigned to port 3000, but if i want to run on different port its not possible.
For example:
docker run -it --rm -p 3000:3000 model:tag serve --production
when i curl to this via 3000 it works
But when i run same on different port as 6000
docker run -it --rm -p 6000:6000 model:tag serve --production
curl just fails, so can assign a port while containerize model
bentoml containerize model:latest
some where hereBeta Was this translation helpful? Give feedback.
All reactions