apt get install
DOK-DL3008apt-get install <package>
use apt-get install <package>=<version>
10RUN apt-get install -y python3
11RUN apt-get install -y python3-pip
12RUN apt-get install -y net-tools
13RUN apt-get install -y cpio14RUN pip3 install --upgrade pip
15RUN pip3 install pyresttest
16
apt-get install <package>
use apt-get install <package>=<version>
9RUN apt-get install -y libreadline-dev
10RUN apt-get install -y python3
11RUN apt-get install -y python3-pip
12RUN apt-get install -y net-tools13RUN apt-get install -y cpio
14RUN pip3 install --upgrade pip
15RUN pip3 install pyresttest
apt-get install <package>
use apt-get install <package>=<version>
8RUN apt-get install -y apt-utils
9RUN apt-get install -y libreadline-dev
10RUN apt-get install -y python3
11RUN apt-get install -y python3-pip12RUN apt-get install -y net-tools
13RUN apt-get install -y cpio
14RUN pip3 install --upgrade pip
apt-get install <package>
use apt-get install <package>=<version>
7RUN apt-get update
8RUN apt-get install -y apt-utils
9RUN apt-get install -y libreadline-dev
10RUN apt-get install -y python311RUN apt-get install -y python3-pip
12RUN apt-get install -y net-tools
13RUN apt-get install -y cpio
apt-get install <package>
use apt-get install <package>=<version>
6
7RUN apt-get update
8RUN apt-get install -y apt-utils
9RUN apt-get install -y libreadline-dev10RUN apt-get install -y python3
11RUN apt-get install -y python3-pip
12RUN apt-get install -y net-tools
Version pinning forces the build to retrieve a particular version regardless of what’s in the cache. This technique can also reduce failures due to unanticipated changes between versions of dependencies.
You can read more about version pinning here
FROM debian:buster
RUN apt-get install python
FROM debian:buster
RUN apt-get install python=2.7