How to build InfluxDB 2 with custom BASE_PATH and API_BASE_PATH?

I want to rebuild InfluxDB 2 with a custom BASE_PATH and API_BASE_PATH as mentioned in the Issue comment

UI Dockerfile

# Sets the URL prefix of the UI service

# sets the URL prefix for the API service

It seems like I need to first build influxdata/ui, then inject these build files into the build process for influxdata/influxdb

Hi @regnaio,

Yes, this seems like the correct approach. You’ll add your custom paths to the Dockerfile (eg. ENV BASE_PATH=/your/custom/basepath & ENV API_BASE_PATH=/your/custom/apibasepath) then build your Docker image. Please let me know if you run into issues.