cara menjalankan file python dari cmd di dockerfile
FROM python:3
ADD my_script.py /
RUN pip install pystrich
CMD [ "python", "./my_script.py" ]
smc181002
FROM python:3
ADD my_script.py /
RUN pip install pystrich
CMD [ "python", "./my_script.py" ]
docker run -it --rm --name my-first-python-script -v "$PWD":/usr/src/widget_app python:3 python my_script.py
docker run -it --rm --name python-script -v "$PWD":/usr/src/app python:3 python ./usr/src/app/script.py