You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding support for production grade image in Dockerfile (#180)
I have modified the current Dockerfile to be able to generate a
Production grade Docker Image based on UBI, the new Dockerfile follows
the below good practices for Production.
Multi-stage build: keeps the final image small and clean.
Non-root execution: creates appuser (uid 10001) and runs the service as
non-root.
Minimal runtime dependencies: no extra tools/packages installed (keeps
attack surface small).
Metadata labels: provides traceability (name, version, maintainer,
vendor, etc.).
Deterministic build: dependencies are pulled in the build stage, final
image only has the binary.
Absolute path: in ENTRYPOINT: safer for production.
---------
Signed-off-by: Anushka <[email protected]>
Signed-off-by: pco <[email protected]>
Co-authored-by: pco <[email protected]>
0 commit comments