run python3 script in dockerfile code example
Example 1: install python3 in dockerfile
RUN apk upgrade --update && apk add --no-cache python3 python3-dev
Example 2: 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