Distribute command-line script and include command
examples/old-python-5/Dockerfile
FROM ubuntu:20.04 RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y python3 RUN apt-get install -y python3-pip RUN pip3 install requests COPY curl.py /opt/ ENTRYPOINT ["/opt/curl.py"]
$ docker build -t mydocker . $ docker run --rm mydocker https://code-maven.com/slides