Skip to content

Commit

Permalink
lint: DL3042 no pip cache
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schurz <[email protected]>
  • Loading branch information
schurzi committed Oct 17, 2023
1 parent a211087 commit 3887e6f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion centos7-ansible-latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN yum -y install yum-plugin-copr libseccomp && \
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers

# Upgrade pip so cryptography package works.
RUN python3 -m pip install --upgrade pip && \
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
pip3 install ansible

# https://molecule.readthedocs.io/en/latest/examples.html#docker-with-non-privileged-user
Expand Down
2 changes: 1 addition & 1 deletion centos8-ansible-latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" -e "s|#baseurl=http://mirror.centos
&& yum clean all

# upgrade pip because of the rust dependency error
RUN python3 -m pip install --upgrade pip && \
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
pip3 install ansible

# Disable requiretty.
Expand Down
2 changes: 1 addition & 1 deletion centosstream8-ansible-latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN yum makecache --timer \
&& yum clean all

# upgrade pip because of the rust dependency error
RUN python3 -m pip install --upgrade pip && \
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
pip3 install ansible

# Disable requiretty.
Expand Down
2 changes: 1 addition & 1 deletion centosstream9-ansible-latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN yum makecache --timer \
&& yum clean all

# upgrade pip because of the rust dependency error
RUN python3 -m pip install --upgrade pip && \
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
pip3 install ansible

# Disable requiretty.
Expand Down
4 changes: 2 additions & 2 deletions debian10-ansible-latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RUN apt-get update -y && apt-get install --fix-missing && \
apt-get install -y \
python python-yaml sudo \
curl gcc python-pip python-dev libffi-dev libssl-dev systemd
RUN pip install --upgrade cffi && \
pip install ansible
RUN pip install --no-cache-dir --upgrade cffi && \
pip install --no-cache-dir ansible

RUN apt-get -f -y --auto-remove remove \
gcc python-pip python-dev libffi-dev libssl-dev && \
Expand Down

0 comments on commit 3887e6f

Please sign in to comment.