A very simple python program, suppose current directory is /PYTHON, I want to pass file.txt as argument to python script boot.py, here is my Dockerfile
FRO
You may also make your script read from STDIN and then pass data to docker using cat. Have a look at how to get docker container to read from stdin?
STDIN
cat
Something like:
cat /path/to/file | docker run -i --rm boot python boot.py