aboutcode-org / aboutcode-org/scancode.io
In alpine container where the first layer is not clearly alpine, we do not detect the OS
Abierto
- Lenguaje dominante
- Python
- Estrellas
- 215
- Forks
- 203
- Merge medio
- 4 d 8 h
- PR fusionados (30 d)
- 6
Descripción
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(
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.