mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-14 14:23:33 +01:00
Using alpine running stage for docker #54
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @subliker on GitHub (Apr 3, 2025).
Using scratch makes the application difficult to debug from the outside, problems with deps and others.
@yusing commented on GitHub (Apr 4, 2025):
Could you elaborate more about debugging it from the outside? I don't see any benefit.
There will be no problem with deps as the container only contains the full binary and requires no dependencies.
@subliker commented on GitHub (Apr 4, 2025):
By debug, I meant access to sh inside the container, which is simply not present in the scratch image.
If sh is not used specifically for security reasons, then you can use the distroless image to avoid copying zoneinfo and ssl certs commands separately.
@yusing commented on GitHub (Apr 4, 2025):
In what case should one
shinto GoDoxy's container?I've just tested with distroless image, final image grown from 24MB to 30MB for no obvious benefits. I don't see the point of doing so.
Although I'm not switching to distroless from scratch for now, I'm leaving this issue opened for discussions.
@subliker commented on GitHub (Apr 5, 2025):
indeed, sh may not be needed in this case. Thanks for your attention
@yusing commented on GitHub (Apr 5, 2025):
No problem. Please let me know if there's any other improvements can be made. Thanks for your advice.