In production, a Bento container is deployed, but ...
# ask-for-help
e
In production, a Bento container is deployed, but we place it behind a proxy. In FastAPI, what I would do is edit the
root_path
in order for everything to work as expected, e.g.
Copy code
app = FastAPI(
    root_path="/api/v1")
What I'm trying to achieve, is have this
root_path
defined by a environment variable, e.g.
root_path=os.environ["API_ROOT_PATH"]
. Since BentoML wraps FastAPI for me, I wonder how can I achieve that?