Skip to content

Commit df21bc0

Browse files
author
Anze
committed
Micro optimization: no need to cache when doing pip install
1 parent 5f0f9ff commit df21bc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pytest:
1616
before_script:
1717
- apt-get update
1818
- apt-get install --no-install-recommends -q -y libsnmp-dev build-essential
19-
- pip install pipenv
19+
- pip install --no-cache-dir pipenv
2020
- pipenv install --dev
2121
script:
2222
- pipenv run pytest -x test_snmpcollector.py

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ COPY --from=python-requirements /requirements.txt /requirements.txt
3232
RUN \
3333
apt-get update && \
3434
apt-get install --no-install-recommends -q -y libsnmp-dev build-essential&& \
35-
pip install -r /requirements.txt && \
35+
pip install --no-cache-dir -r /requirements.txt && \
3636
apt-get purge -y build-essential && \
3737
apt-get clean autoclean && \
3838
apt-get autoremove --yes && \

0 commit comments

Comments
 (0)