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

feat : use --no-cache-dir flag to pip in dockerfiles to save space #792

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 docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3
WORKDIR /tmp/

COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

RUN git clone \
-b master \
Expand Down
2 changes: 1 addition & 1 deletion ros/ardent/ubuntu/xenial/ros-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN colcon mixin add default \
colcon metadata update

# install python packages
RUN pip3 install -U \
RUN pip3 install --no-cache-dir -U \
argcomplete

# install ros2 packages
Expand Down
2 changes: 1 addition & 1 deletion ros/bouncy/ubuntu/bionic/ros-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN colcon mixin add default \
colcon metadata update

# install python packages
RUN pip3 install -U \
RUN pip3 install --no-cache-dir -U \
argcomplete

# install ros2 packages
Expand Down
2 changes: 1 addition & 1 deletion ros/crystal/ubuntu/bionic/ros-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN colcon mixin add default \
colcon metadata update

# install python packages
RUN pip3 install -U \
RUN pip3 install --no-cache-dir -U \
argcomplete

# install ros2 packages
Expand Down
2 changes: 1 addition & 1 deletion sros/kinetic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ RUN mv roslisp/manifest.xml roslisp/oldmanifest.xml && \
--ignore-src \
--rosdistro ${ROS_DISTRO} \
--as-root=apt:false && \
pip install --upgrade ../rospkg/ && \
pip install --no-cache-dir --upgrade ../rospkg/ && \
mv roslisp/oldmanifest.xml roslisp/manifest.xml && \
rm -rf /var/lib/apt/lists/*

Expand Down