Skip to content

✨ fix(docker): Update Dockerfile to copy files with correct ownership for enhanced security #14

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

Closed
wants to merge 2 commits into from

Conversation

Cristian45
Copy link
Contributor

This pull request updates the Dockerfile in the server/app-authorization directory to improve security and ensure proper file ownership during the build process. The most important changes include adding ownership specifications when copying files and reorganizing the build steps for clarity.

Security and ownership improvements:

  • Updated COPY commands to include --chown=appuser:appgroup for setting the correct ownership of dependency files, source files, and configuration files.

Build process improvements:

  • Moved the npm run build command to a dedicated step after copying the source and configuration files, improving clarity and separation of concerns.

@Cristian45 Cristian45 closed this May 19, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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