Skip to content
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

add non-root user to frontend and backend containers #1228

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

eric-intuitem
Copy link
Collaborator

@eric-intuitem eric-intuitem commented Dec 22, 2024

also remove huey further,
should fix #1219

@eric-intuitem eric-intuitem force-pushed the improve/non-root-containers branch from c05fbc5 to 00626b8 Compare December 22, 2024 11:50
@Nathanael-Mtd
Copy link

I think keeping same UIDs (and names like "app") for backend and frontend images are fine, and more simple to maintain.

Also, chown is not needed to avoid binaries/code manipulation from app user, the application can be built as root but executable as non-root user. But you can add chown to app grp/user for app storage folders like db

Following advice from Nathanael-Mtd
tentative fix for broken startup test
Copy link
Contributor

@nas-tabchiche nas-tabchiche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. This can be merged once CI is green.

@nas-tabchiche nas-tabchiche force-pushed the improve/non-root-containers branch from bf76a71 to ebd7c9f Compare December 24, 2024 18:41
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.

Build Docker images in non-root mode
3 participants