Using dockerfile for running script

I wanted to run a script as soon as my influxdb containers starts, so got to know it can be achieved using dockerfile and creating an image. Through dockerfile i wanted to run a script file which in turn will run flux files present in that folder and will push data to bucket. But after docker build nothing is happening.

FROM influxdb:latest
WORKDIR /home/ubuntu/atlas/ec2/etc/influxdb/missing_data_queries/
CMD ["/bin/bash",“run_flux.sh”]