I am trying to build CDS in our docker action using gcr.io/distroless/java-base-debian12 and the JRE required by our runtime. CDS seem to be very strict about this. Problem I am now facing, is highlighted in the post:
A lot of our apps fail during cds generation, since we do not set up the full env (which is fine). However, without a shell in the FROM image, we can not used || true to suppress the exit code 1 in Dockerfile. Any good idea how to solve this?
Andrew Latham
unread,
Sep 17, 2025, 12:05:54 PM9/17/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to distrole...@googlegroups.com
Simon
So the Java command is the problem not Distroless or Docker. Do you
need to configure -Xlog: for stdout and stderr via some ENV first and
drop the or( || ) to true operator?
You may need to reach out for some Java assistance. Distroless and
minimal images bring bad practices to the light which is what makes
them awesome.