Skip to content

Conversation

miguelaferreira
Copy link

@miguelaferreira miguelaferreira commented Sep 17, 2025

I'm very interested in running this container, but I would prefer not to run it as the root user. To that end, I'm proposing to modify the Dockerfile to allow the users to specify the user details at runtime.

The change in this PR introduces 4 new environment variables to control username, group name, user ID and group ID. The default values of these variables configure the root user to keep backwards compatibility for people already running the container.

In addition, the command that is executed when the container starts is extended to:

  • check if the defined group and user already exist, if not they are created;
  • switch from the root user to the new user (which could still be root) before executing the theengs gateway.

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