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

Remove hardcoded user from Dockerfile #140

Merged
merged 1 commit into from
Jul 7, 2024
Merged

Remove hardcoded user from Dockerfile #140

merged 1 commit into from
Jul 7, 2024

Conversation

jhalter
Copy link
Owner

@jhalter jhalter commented Jul 7, 2024

This reverts the Dockerfile change in #111 to run the server as a non-root user by default, for two reasons:

  1. Most users of the Docker image do not build the image themselves from the Dockerfile, so including a hardcoded UID/GID in the Docker image means they will always have to pass the --user flag to override the hardcoded user to something specific to their system, or else open up file permissions. This came up in Permissions error #124.

  2. Using the debian-stable image to run the adduser command increases the image size by >10x.

As an alternative, I've updated the README doc with a recommendation to run the image with the --user flag.

@jhalter jhalter merged commit d4207f0 into master Jul 7, 2024
1 check failed
@jhalter jhalter deleted the revert_dockerfile branch July 7, 2024 01:01
@jhalter jhalter mentioned this pull request Jul 7, 2024
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