aboutcode-org / aboutcode-org/scancode.io
In alpine container where the first layer is not clearly alpine, we do not detect the OS
未關閉
- 主要語言
- Python
- 星號
- 215
- 分支
- 203
- 平均合併
- 4 天 8 小時
- 30 天內合併 PR
- 6
描述
Say I build a container where:
- the first layer is not using a base image, and contains only something like:`COPY /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt`
- the second layer is essentially an Alpine base image
Since the first layer does not have the /etc/os-release and related, it will not be detected as Alpine.
The same issue may exist with other distros.
The solution is to look at all the layers before deciding on what the primary OS is (and also nothing prohibits to have multiple OS personalities across layers or even in the same layer(
貢獻指南
評估
這個 Issue 還沒有評估資料。