[PR #113] [MERGED] Added --no-cache-dir option to all Python pip commands in Dockerfiles #220

Closed
opened 2025-11-06 14:21:31 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/docker/awesome-compose/pull/113
Author: @andymadge
Created: 3/21/2021
Status: Merged
Merged: 3/22/2021
Merged by: @aiordache

Base: masterHead: python-no-cache


📝 Commits (1)

  • 82239d0 Added --no-cache-dir option to all Python pip commands in Dockerfiles

📊 Changes

4 files changed (+4 additions, -4 deletions)

View changed files

📝 django/app/Dockerfile (+1 -1)
📝 flask/app/Dockerfile (+1 -1)
📝 nginx-flask-mongo/flask/Dockerfile (+1 -1)
📝 nginx-flask-mysql/backend/Dockerfile (+1 -1)

📄 Description

The cache gives no benefit to a Docker image but it does add size, hence it's best left out.

See https://pip.pypa.io/en/stable/reference/pip_install/#caching for relevant pip documentation.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/docker/awesome-compose/pull/113 **Author:** [@andymadge](https://github.com/andymadge) **Created:** 3/21/2021 **Status:** ✅ Merged **Merged:** 3/22/2021 **Merged by:** [@aiordache](https://github.com/aiordache) **Base:** `master` ← **Head:** `python-no-cache` --- ### 📝 Commits (1) - [`82239d0`](https://github.com/docker/awesome-compose/commit/82239d04245550a2989c3eac0f99b5d791fb7bfb) Added `--no-cache-dir` option to all Python pip commands in Dockerfiles ### 📊 Changes **4 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `django/app/Dockerfile` (+1 -1) 📝 `flask/app/Dockerfile` (+1 -1) 📝 `nginx-flask-mongo/flask/Dockerfile` (+1 -1) 📝 `nginx-flask-mysql/backend/Dockerfile` (+1 -1) </details> ### 📄 Description The cache gives no benefit to a Docker image but it does add size, hence it's best left out. See https://pip.pypa.io/en/stable/reference/pip_install/#caching for relevant pip documentation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 14:21:31 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#220