Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Distribute command-line script and include command

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