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 #18

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-compose-py-siblings/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN add-apt-repository ppa:jonathonf/python-3.6 \
&& apt-get update \
&& apt-get install -y python3.6 python3-pip python3.6-dev build-essential libbz2-dev libssl-dev libreadline-dev libsqlite3-dev tk-dev libevent-dev \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.6 10 \
&& pip install --upgrade pip flask_testing coverage nose pluggy py randomize tox tox-docker pyyaml flask-httpauth python-owasp-zap-v2.4
&& pip install --no-cache-dir --upgrade pip flask_testing coverage nose pluggy py randomize tox tox-docker pyyaml flask-httpauth python-owasp-zap-v2.4

ENV WORKSPACE /home/jenkins

Expand Down
4 changes: 2 additions & 2 deletions docker-e2e-compose-py/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ RUN add-apt-repository ppa:jonathonf/python-3.6 \
&& apt-get install -y python3.6 python3-pip python3.6-dev build-essential libbz2-dev libssl-dev libreadline-dev libsqlite3-dev tk-dev libevent-dev \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.6 10

RUN pip install --upgrade pip flask_testing coverage nose pluggy py randomize tox tox-docker pyyaml \
&& pip install selenium
RUN pip install --no-cache-dir --upgrade pip flask_testing coverage nose pluggy py randomize tox tox-docker pyyaml \
&& pip install --no-cache-dir selenium

RUN wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip \
&& unzip chromedriver_linux64.zip \
Expand Down