Skip to content

Use a distroless docker image #255

@techmunk

Description

@techmunk

Description

Have you considered using a distroless image for the docker build? One that doesn't include busybox?

I'm currently doing the following in my own Dockerfile and all seems to be working fine.

FROM ghcr.io/tale/headplane:latest AS headplane

FROM gcr.io/distroless/nodejs22-debian12:nonroot

COPY --from=headplane --chown=nonroot:nonroot /app /app
COPY --from=headplane --chown=nonroot:nonroot /usr/libexec/headplane /usr/libexec/headplane
COPY --from=headplane --chown=nonroot:nonroot /var/lib/headplane /var/lib/headplane

WORKDIR /app
CMD ["build/server/index.js"]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestneeds infoFurther information is requested

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions