How to generate har file by using mitmproxy docker?

I’m using this command but I got error:
docker run --rm -it -p 8080:8080 -v $PWD:/tmp mitmproxy/mitmproxy mitmdump -s ./har_dump.py --set hardump=/dump.har

Error:
/usr/bin/mitmdump: No such script

The question is how can I change the command to have successful running?

In the other hand:
I Modified the docker and created Dockerfile and entrypoint.sh and works fine but I was wondering if I could use mitmproxy docker directly via command line like the command above?