# Dockerfile FROM python:3 ADD my_script.py / CMD [ "python", "./my_script.py" ] # Commandline docker run IMAGE /path/to/script.py