Skip to content

Conversation

ToshY
Copy link

@ToshY ToshY commented Sep 27, 2025

Fixes #679

Based on:


Using a non-root user is regarded as a best practice.

I am not sure what the "many issues" a non-root user could cause (which might need further explanation), but I was able to build the images (dev/prod targets) and run it on dev without any apparent issues. Requires further testing.

Copy link
Contributor

@7-zete-7 7-zete-7 left a comment

Choose a reason for hiding this comment

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

Hi, @ToshY!

Perhaps, instead of changing the Dockerfile, it would make sense to describe the changes to this PR in the documentation page?

@7-zete-7
Copy link
Contributor

I assume FrankenPHP relies on Caddy's decision to run as root by default. See the discussion on this topic in the Caddy repository: caddyserver/caddy-docker#104.

@ToshY
Copy link
Author

ToshY commented Sep 28, 2025

Hi, @ToshY!

Perhaps, instead of changing the Dockerfile, it would make sense to describe the changes to this PR in the documentation page?

Okay, would you recommend adding a (new) documentation page, or update an existing one?

Edit

I've moved it to a new documentation page.


I understand the decision to not directly apply the changes to the Dockerfile and document it instead. Maybe something to take into consideration for next time (and start with non-root by default then).

@ToshY ToshY force-pushed the issue/679 branch 3 times, most recently from 90fb72e to 368a331 Compare September 28, 2025 12:17
@ToshY ToshY requested a review from 7-zete-7 September 28, 2025 12:17
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.

Run container as an unprivileged user
2 participants