duplicate path in $PATH
还没有人认领这个 Issue。
评估
调研方向
首先在仓库中搜索 Python 基础镜像定义 PATH 的位置,然后将该值与所提供的 docker run 和 Python 命令显示的环境进行比较。完成的标准是,受影响的镜像不再重复包含 /usr/local/bin,同时保留预期的路径顺序。
由索引模型根据 Issue 内容生成。
描述
Minor nit. We blindly prepend /usr/local/bin onto the $PATH without looking to see if it's already there. This leads to duplication.
docker run --rm -it python:3.12-slim
Python 3.12.1 (main, Jan 11 2024, 10:03:43) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ['PATH']
'/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Expected output: /usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
Or possibly the original path is fine? Since /usr/local/sbin already occurs before /usr/bin and /bin.
This applies to all the base images in here. They all come with PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin for the root user.
- 主要语言
- Dockerfile
- 星标
- 2.8k
- 派生
- 1.1k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker-library/python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
docker-library/python#1151 ·
-
难度 4/5 3-5 天 新手友好度 38/100
docker-library/python#1150 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 54/100
docker-library/python#1147 ·
-
难度 4/5 3-5 天 新手友好度 45/100
docker-library/python#1082 · 10 条评论 · 40 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 55/100
docker-library/python#1076 · 5 条评论 · 1 个 reaction ·
查看 docker-library/python 的全部 Issue
相似的 Issue
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373未关闭
难度 2/5 1-3 小时 新手友好度 72/100
linuxserver/docker-healthchecks#137 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 65/100
BenjaminPoilve/minichord#203 ·
-
area:infra help wanted type:ci
难度 2/5 1-3 小时 新手友好度 83/100
JoeyHammoth/semiconductor-bandgap-belvedere#62 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
NuSkooler/enigma-bbs#1215 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复