apt get install
DOK-DL3008apt-get install <package>
use apt-get install <package>=<version>
15# update some packages
16RUN apt-get install -y wget git ca-certificates curl && update-ca-certificates
17# install deps
18RUN apt-get install -y --no-install-recommends build-essential python-dev libpq-dev libevent-dev libmagic-dev19
20ENV INSTALL_PATH /opev
21
apt-get install <package>
use apt-get install <package>=<version>
13# apt-get update
14RUN apt-get clean -y && apt-get update -y
15# update some packages
16RUN apt-get install -y wget git ca-certificates curl && update-ca-certificates17# install deps
18RUN apt-get install -y --no-install-recommends build-essential python-dev libpq-dev libevent-dev libmagic-dev
19
apt-get install <package>
use apt-get install <package>=<version>
5RUN apt-get install -y curl apt-transport-https
6RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk-jessie main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
7RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
8RUN apt-get update -y && apt-get install -y google-cloud-sdk && apt-get autoremove -y 9RUN apt-get clean -y
10
11CMD gcloud info
apt-get install <package>
use apt-get install <package>=<version>
2MAINTAINER Niranjan Rajendran <[email protected]>
3
4RUN apt-get clean -y && apt-get update -y
5RUN apt-get install -y curl apt-transport-https 6RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk-jessie main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
7RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
8RUN apt-get update -y && apt-get install -y google-cloud-sdk && apt-get autoremove -y
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