Skip to content

fix(docker): move ENTRYPOINT to the final stage #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

droguljic
Copy link
Contributor

This is done for the following reasons:

  • Ensures explicitness and improves readability
  • Enforces consistency by specifying the runtime configuration in the final stage
  • Mitigate potential security breaches by placing after the USER command
  • Avoid breaking security rules such as Semgrep's dockerfile.security.missing-user-entrypoint.missing-user-entrypoint

This is done for the following reasons:
- Ensures explicitness and improves readability
- Enforces consistency by specifying the runtime configuration
in the final stage
- Mitigate potential security breaches by placing
after the `USER` command
- Avoid breaking security rules such as Semgrep's
`dockerfile.security.missing-user-entrypoint.missing-user-entrypoint`
@droguljic droguljic force-pushed the fix/docker-entrypoint-final-stage branch from 4f2cd61 to eaa2718 Compare June 5, 2025 13:41
@droguljic droguljic requested review from mbareta and MiroDojkic June 5, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant