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

Installing Python in Docker - one layer

The same as earlier, but now we merged the 3 RUN commands into one, so we have less levels in the history.

FROM ubuntu:20.04
RUN apt-get update && \
    apt-get upgrade -y && \
    apt-get install -y python3
$ docker build -t mydocker2 .