Skip to content

Include libatomic1 #1981

@GauBen

Description

@GauBen

Hi!

Since v25, Node requires libatomic1 to run, which is not available in distroless images.

./node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

My current workaround is adding this line to my Dockerfile:

COPY --from=build /lib/x86_64-linux-gnu/libatomic.so.1 /lib/x86_64-linux-gnu/libatomic.so.1

It seems to be a brittle solution, but the best I could find. Should libatomic1 be included in the cc distroless images?

Thank you for this project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions