Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore : use --no-cache-dir flag to pip in dockerfiles to save space #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY requirements.txt requirements.txt
COPY requirements-dev.txt requirements-dev.txt
COPY setup.py setup.py
COPY deploy/FindNCCL.cmake /usr/share/cmake-3.10/Modules
RUN pip3 install -r requirements.txt -r requirements-dev.txt
RUN pip3 install --no-cache-dir -r requirements.txt -r requirements-dev.txt

COPY ftlib ftlib
RUN cd ftlib/consensus/shared_storage/proto/ && bash gen_grpc.sh
Expand Down
2 changes: 1 addition & 1 deletion ftlib/commlib/gloo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV PATH=/root/miniconda3/bin:${PATH}

RUN conda init bash && echo "auto_activate_base: true" > ~/.condarc

RUN pip install pytest pybind11==2.4.3 numpy
RUN pip install --no-cache-dir pytest pybind11==2.4.3 numpy

RUN wget -O /usr/share/cmake-3.10/Modules/FindNCCL.cmake https://raw.githubusercontent.com/BVLC/caffe/master/cmake/Modules/FindNCCL.cmake

Expand Down
2 changes: 1 addition & 1 deletion ftlib/commlib/nccl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV PATH=/root/miniconda3/bin:${PATH}

RUN conda init bash && echo "auto_activate_base: true" > ~/.condarc

RUN pip install pytest pybind11==2.4.3 numpy
RUN pip install --no-cache-dir pytest pybind11==2.4.3 numpy

RUN wget -O /usr/share/cmake-3.10/Modules/FindNCCL.cmake https://raw.githubusercontent.com/BVLC/caffe/master/cmake/Modules/FindNCCL.cmake

Expand Down
2 changes: 1 addition & 1 deletion ftlib/commlib/nccl/Dockerfile.cn
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV PATH=/root/miniconda3/bin:${PATH}

RUN conda init bash && echo "auto_activate_base: true" > ~/.condarc

RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pytest pybind11==2.4.3 numpy
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple pytest pybind11==2.4.3 numpy

RUN wget -O /usr/share/cmake-3.10/Modules/FindNCCL.cmake https://raw.githubusercontent.com/BVLC/caffe/master/cmake/Modules/FindNCCL.cmake

Expand Down