How to RUN an API in docker file

Hi,

I have an API (python based) that will fetch the latest version of influxdb version. Now I’m going to install the influxdb latest version in docker container( ubuntu base image ) through Dockerfile. But I don’t have idea that how to install the latest version of influxdb through Docker file via API.

Yes I know how to install latest version of influxdb in docker container but i want to install it through API.

Please help me…

Regards,
Murugan Chandrasekar