Skip to content

Commit

Permalink
feat: 更新 python 构建脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed May 24, 2024
1 parent 4e8d9ad commit 96acb58
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/3.10/slim-sid/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/3.10/slim-trixie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/3.11/slim-sid/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/3.11/slim-trixie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/3.12/slim-sid/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/3.12/slim-trixie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/3.13-rc/slim-sid/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/3.13-rc/slim-trixie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/3.9/slim-sid/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/3.9/slim-trixie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down
1 change: 1 addition & 0 deletions python/Dockerfile-linux.template
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ RUN set -eux; \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' \
| sort -u \
| xargs -r dpkg-query --search \
| grep -P '^[a-z0-9][a-z0-9\.\+-]*:' \
| cut -d: -f1 \
| sort -u \
| xargs -r apt-mark manual \
Expand Down

1 comment on commit 96acb58

@wojiushixiaobai
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.