Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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" ]
Source by runnable.com #
 
PREVIOUS NEXT
Tagged: #run #python #file #cmd #dockerfile
ADD COMMENT
Topic
Name
8+4 =