Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Merge "update Dockerfiles to reduce image size" into master_clean
Browse files Browse the repository at this point in the history
  • Loading branch information
chuanqi129 authored and Gerrit Code Review committed Jan 28, 2019
2 parents 4dcab01 + 3806c3c commit f30126d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 42 deletions.
23 changes: 2 additions & 21 deletions docker/standalone/cpu-centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ RUN rpm -iUvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-rel
redhat-rpm-config \
tar \
findutils \
make \
gcc-c++ \
cmake \
git \
Expand All @@ -26,30 +25,12 @@ RUN rpm -iUvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-rel
net-tools \
ufw \
iptables \
atlas-devel \
boost-devel \
gflags-devel \
glog-devel \
hdf5-devel \
leveldb-devel \
lmdb-devel \
opencv-devel \
protobuf-devel \
snappy-devel \
protobuf-compiler \
freetype-devel \
libpng-devel \
python-devel \
python-numpy \
python-pip \
python-scipy \
gcc-gfortran \
libjpeg-turbo-devel && \
gcc-gfortran && \
yum clean all

# Install conda and Intel Caffe conda package
WORKDIR /root/
RUN wget -c https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh && \
RUN wget --no-check-certificate -c https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh && \
bash Miniconda2-latest-Linux-x86_64.sh -b && \
./miniconda2/bin/conda config --add channels intel && \
./miniconda2/bin/conda install -c intel caffe && \
Expand Down
24 changes: 3 additions & 21 deletions docker/standalone/cpu-ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MAINTAINER [email protected]

RUN apt-get update && \
apt-get install -y --no-install-recommends \
cpio \
bzip2 \
build-essential \
cmake \
git \
Expand All @@ -17,31 +17,13 @@ RUN apt-get update && \
vim \
net-tools \
iputils-ping \
screen \
libmlx4-1 libmlx5-1 ibutils rdmacm-utils libibverbs1 ibverbs-utils perftest infiniband-diags \
openmpi-bin libopenmpi-dev \
ufw \
iptables \
libboost-all-dev \
libgflags-dev \
libgoogle-glog-dev \
libhdf5-serial-dev \
libleveldb-dev \
liblmdb-dev \
libopencv-dev \
libprotobuf-dev \
libsnappy-dev \
protobuf-compiler \
python-dev \
python-numpy \
python-pip \
python-setuptools \
python-scipy && \
iptables && \
rm -rf /var/lib/apt/lists/*

# Install conda and Intel Caffe conda package
WORKDIR /root/
RUN wget -c https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh && \
RUN wget --no-check-certificate -c https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh && \
bash Miniconda2-latest-Linux-x86_64.sh -b && \
./miniconda2/bin/conda config --add channels intel && \
./miniconda2/bin/conda install -c intel caffe && \
Expand Down

0 comments on commit f30126d

Please sign in to comment.