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

✨ Run the server process using a non-root user #58

Open
bgauduch opened this issue Jun 16, 2020 · 0 comments
Open

✨ Run the server process using a non-root user #58

bgauduch opened this issue Jun 16, 2020 · 0 comments

Comments

@bgauduch
Copy link
Owner

We first need to find a way to properly handle permissions on game files volume mount, and then use a non-root runtime user.

Exemple user setup to be added in the Dockerfile:

# setup the server non-root user
ENV SERVER_USER="cod2"
RUN addgroup -S ${SERVER_USER} && adduser -S -D -G ${SERVER_USER} ${SERVER_USER}
USER ${SERVER_USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant