From 3ff2eadda2f1c08ab3df8bd81f15e717f7e8bf5a Mon Sep 17 00:00:00 2001 From: GuangJie1 Date: Wed, 11 Jun 2025 14:41:02 +0800 Subject: [PATCH 1/2] add pip --- .../23.3.1/24.03-lts/Distrofile | 9 +++++ Distroless/distroless-pip/README.md | 35 +++++++++++++++++++ Distroless/distroless-pip/meta.yml | 2 ++ 3 files changed, 46 insertions(+) create mode 100644 Distroless/distroless-pip/23.3.1/24.03-lts/Distrofile create mode 100644 Distroless/distroless-pip/README.md create mode 100644 Distroless/distroless-pip/meta.yml diff --git a/Distroless/distroless-pip/23.3.1/24.03-lts/Distrofile b/Distroless/distroless-pip/23.3.1/24.03-lts/Distrofile new file mode 100644 index 00000000..5905cfc9 --- /dev/null +++ b/Distroless/distroless-pip/23.3.1/24.03-lts/Distrofile @@ -0,0 +1,9 @@ +name: distroless-pip +summary: summary for distroless-pip +base: scratch +release: 24.03-LTS +platforms: + - linux/amd64 + - linux/arm64 +parts: + - python3-pip_bins \ No newline at end of file diff --git a/Distroless/distroless-pip/README.md b/Distroless/distroless-pip/README.md new file mode 100644 index 00000000..c6bddf68 --- /dev/null +++ b/Distroless/distroless-pip/README.md @@ -0,0 +1,35 @@ +# Quick reference + +- The official distroless-pip docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative). + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community). + +# distroless-pip | openEuler +This image contains a minimal Linux, pip runtime. + +PIP is the package installer for Python. You can use it to install packages from the Python Package Index and other indexes. + +# Supported tags and respective Dockerfile links +The tag details are as follows +| Tag | Currently | Architectures | +|----------|-------------|------------------| +|[23.3.1-oe2403lts](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Distroless/distroless-pip/23.3.1/24.03-lts/Distrofile)| PIP 23.3.1 on openEuler 24.03-LTS | amd64, arm64 | + +# Usage +**Create a Dockerfile in your python project** +``` +# Dockerfile + +FROM openeuler/distroless-pip:23.3.1-oe2403lts +# Need to refresh the CA certificates +RUN update-ca-trust +# example 1 +RUN pip install numpy +# example 2 +RUN pip install -r requirements.txt +``` + +# Question and answering +If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). \ No newline at end of file diff --git a/Distroless/distroless-pip/meta.yml b/Distroless/distroless-pip/meta.yml new file mode 100644 index 00000000..ca3359bb --- /dev/null +++ b/Distroless/distroless-pip/meta.yml @@ -0,0 +1,2 @@ +23.3.1-oe2403lts: + path: 23.3.1/24.03-lts/Distrofile \ No newline at end of file -- Gitee From 8c91ad629a4c3b49c4da0774eaa8ec238939e2d7 Mon Sep 17 00:00:00 2001 From: GuangJie1 Date: Wed, 11 Jun 2025 16:42:24 +0800 Subject: [PATCH 2/2] add pip --- Distroless/image-list.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/Distroless/image-list.yml b/Distroless/image-list.yml index b2e81db3..acb89c8b 100644 --- a/Distroless/image-list.yml +++ b/Distroless/image-list.yml @@ -6,4 +6,5 @@ images: distroless-cc: distroless-cc distroless-base: distroless-base distroless-php: distroless-php + distroless-pip: distroless-pip distroless-ruby: distroless-ruby -- Gitee