Answers for "dockerfile to run python script"

1

how to run python file from cmd in dockerfile

FROM python:3

ADD my_script.py /

RUN pip install pystrich

CMD [ "python", "./my_script.py" ]
Posted by: Guest on June-27-2020
1

dockerfile to run python script

docker run -it --rm --name my-first-python-script -v "$PWD":/usr/src/widget_app python:3 python my_script.py
Posted by: Guest on August-20-2020

Code answers related to "dockerfile to run python script"

Python Answers by Framework

Browse Popular Code Answers by Language