Add --no-install-recommends to apt-get
In response to GitHub issue: https://github.com/tensorflow/tensorflow/issues/1145 Avoids unnecessary installs and reduces docker image sizes. Change: 126312137
This commit is contained in:
parent
1f120e3f00
commit
e19437c09a
@ -18,7 +18,7 @@ set -e
|
|||||||
|
|
||||||
# Install bootstrap dependencies from ubuntu deb repository.
|
# Install bootstrap dependencies from ubuntu deb repository.
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y --no-install-recommends \
|
||||||
software-properties-common
|
software-properties-common
|
||||||
apt-get clean
|
apt-get clean
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -19,7 +19,7 @@ set -e
|
|||||||
# Install dependencies from ubuntu deb repository.
|
# Install dependencies from ubuntu deb repository.
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install -y \
|
apt-get install -y --no-install-recommends \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
build-essential \
|
build-essential \
|
||||||
@ -37,6 +37,7 @@ apt-get install -y \
|
|||||||
python-virtualenv \
|
python-virtualenv \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
|
rsync \
|
||||||
sudo \
|
sudo \
|
||||||
swig \
|
swig \
|
||||||
unzip \
|
unzip \
|
||||||
|
@ -19,6 +19,9 @@ set -e
|
|||||||
# Install pip packages from whl files to avoid the time-consuming process of
|
# Install pip packages from whl files to avoid the time-consuming process of
|
||||||
# building from source.
|
# building from source.
|
||||||
|
|
||||||
|
pip install wheel
|
||||||
|
pip3 install wheel
|
||||||
|
|
||||||
# Use pip to install numpy to the latest version, instead of 1.8.2 through
|
# Use pip to install numpy to the latest version, instead of 1.8.2 through
|
||||||
# apt-get
|
# apt-get
|
||||||
wget -q https://pypi.python.org/packages/17/f3/404bc85be67150663024d2bb5af654c7d16cf678077690dda27b91be14eb/numpy-1.8.2-cp27-cp27mu-manylinux1_x86_64.whl#md5=3ccf5c004fc99bd06dd443de80d622e6
|
wget -q https://pypi.python.org/packages/17/f3/404bc85be67150663024d2bb5af654c7d16cf678077690dda27b91be14eb/numpy-1.8.2-cp27-cp27mu-manylinux1_x86_64.whl#md5=3ccf5c004fc99bd06dd443de80d622e6
|
||||||
|
@ -30,7 +30,7 @@ tar xzf swig-3.0.8.tar.gz
|
|||||||
|
|
||||||
pushd /swig-3.0.8
|
pushd /swig-3.0.8
|
||||||
|
|
||||||
apt-get install -y libpcre3-dev
|
apt-get install -y --no-install-recommends libpcre3-dev
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
@ -43,7 +43,7 @@ rm -rf swig-3.0.8
|
|||||||
rm -f swig-3.0.8.tar.gz
|
rm -f swig-3.0.8.tar.gz
|
||||||
|
|
||||||
# Install Python 3.5 and dev library
|
# Install Python 3.5 and dev library
|
||||||
apt-get install -y python3.5 libpython3.5-dev
|
apt-get install -y --no-install-recommends python3.5 libpython3.5-dev
|
||||||
|
|
||||||
# Install pip3.4 and numpy for Python 3.4
|
# Install pip3.4 and numpy for Python 3.4
|
||||||
# This strange-looking install step is a stopgap measure to make the genrule
|
# This strange-looking install step is a stopgap measure to make the genrule
|
||||||
|
@ -18,7 +18,7 @@ set -e
|
|||||||
|
|
||||||
# Install dependencies from ubuntu deb repository.
|
# Install dependencies from ubuntu deb repository.
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y --no-install-recommends \
|
||||||
chromium-browser \
|
chromium-browser \
|
||||||
nodejs \
|
nodejs \
|
||||||
nodejs-legacy \
|
nodejs-legacy \
|
||||||
|
@ -3,7 +3,7 @@ FROM ubuntu:14.04
|
|||||||
MAINTAINER Shanqing Cai <cais@google.com>
|
MAINTAINER Shanqing Cai <cais@google.com>
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y \
|
RUN apt-get install -y --no-install-recommends \
|
||||||
curl \
|
curl \
|
||||||
python \
|
python \
|
||||||
python-numpy \
|
python-numpy \
|
||||||
|
@ -4,7 +4,7 @@ MAINTAINER Shanqing Cai <cais@google.com>
|
|||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
RUN apt-get install -y \
|
RUN apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
dbus \
|
dbus \
|
||||||
git \
|
git \
|
||||||
|
@ -4,7 +4,7 @@ MAINTAINER Shanqing Cai <cais@google.com>
|
|||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
RUN apt-get install -y \
|
RUN apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
git \
|
git \
|
||||||
software-properties-common
|
software-properties-common
|
||||||
|
@ -3,15 +3,20 @@ FROM ubuntu:14.04
|
|||||||
MAINTAINER Craig Citro <craigcitro@google.com>
|
MAINTAINER Craig Citro <craigcitro@google.com>
|
||||||
|
|
||||||
# Pick up some TF dependencies
|
# Pick up some TF dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
build-essential \
|
||||||
curl \
|
curl \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
libpng12-dev \
|
libpng12-dev \
|
||||||
libzmq3-dev \
|
libzmq3-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
|
python \
|
||||||
|
python-dev \
|
||||||
python-numpy \
|
python-numpy \
|
||||||
python-pip \
|
python-pip \
|
||||||
python-scipy \
|
python-scipy \
|
||||||
|
rsync \
|
||||||
|
unzip \
|
||||||
&& \
|
&& \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -2,7 +2,7 @@ FROM ubuntu:14.04
|
|||||||
|
|
||||||
MAINTAINER Craig Citro <craigcitro@google.com>
|
MAINTAINER Craig Citro <craigcitro@google.com>
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
@ -13,8 +13,10 @@ RUN apt-get update && apt-get install -y \
|
|||||||
python-dev \
|
python-dev \
|
||||||
python-numpy \
|
python-numpy \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
rsync \
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
swig \
|
swig \
|
||||||
|
unzip \
|
||||||
zip \
|
zip \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
&& \
|
&& \
|
||||||
@ -50,7 +52,7 @@ COPY run_jupyter.sh /
|
|||||||
# https://bugs.launchpad.net/trusty-backports/+bug/1368094
|
# https://bugs.launchpad.net/trusty-backports/+bug/1368094
|
||||||
RUN add-apt-repository -y ppa:openjdk-r/ppa && \
|
RUN add-apt-repository -y ppa:openjdk-r/ppa && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y openjdk-8-jdk openjdk-8-jre-headless && \
|
apt-get install -y --no-install-recommends openjdk-8-jdk openjdk-8-jre-headless && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ FROM nvidia/cuda:7.5-cudnn4-devel
|
|||||||
|
|
||||||
MAINTAINER Craig Citro <craigcitro@google.com>
|
MAINTAINER Craig Citro <craigcitro@google.com>
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
@ -10,11 +10,14 @@ RUN apt-get update && apt-get install -y \
|
|||||||
libpng12-dev \
|
libpng12-dev \
|
||||||
libzmq3-dev \
|
libzmq3-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
|
python \
|
||||||
python-dev \
|
python-dev \
|
||||||
python-numpy \
|
python-numpy \
|
||||||
python-pip \
|
python-pip \
|
||||||
|
rsync \
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
swig \
|
swig \
|
||||||
|
unzip \
|
||||||
zip \
|
zip \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
&& \
|
&& \
|
||||||
@ -50,7 +53,7 @@ COPY run_jupyter.sh /
|
|||||||
# https://bugs.launchpad.net/trusty-backports/+bug/1368094
|
# https://bugs.launchpad.net/trusty-backports/+bug/1368094
|
||||||
RUN add-apt-repository -y ppa:openjdk-r/ppa && \
|
RUN add-apt-repository -y ppa:openjdk-r/ppa && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y openjdk-8-jdk openjdk-8-jre-headless && \
|
apt-get install -y --no-install-recommends openjdk-8-jdk openjdk-8-jre-headless && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -3,15 +3,20 @@ FROM nvidia/cuda:7.5-cudnn4-devel
|
|||||||
MAINTAINER Craig Citro <craigcitro@google.com>
|
MAINTAINER Craig Citro <craigcitro@google.com>
|
||||||
|
|
||||||
# Pick up some TF dependencies
|
# Pick up some TF dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
build-essential \
|
||||||
curl \
|
curl \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
libpng12-dev \
|
libpng12-dev \
|
||||||
libzmq3-dev \
|
libzmq3-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
|
python \
|
||||||
|
python-dev \
|
||||||
python-numpy \
|
python-numpy \
|
||||||
python-pip \
|
python-pip \
|
||||||
python-scipy \
|
python-scipy \
|
||||||
|
rsync \
|
||||||
|
unzip \
|
||||||
&& \
|
&& \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
Loading…
Reference in New Issue
Block a user