Answers for "how to run python file from cmd in dockerfile"

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

Python Answers by Framework

Browse Popular Code Answers by Language