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

Docker: run as non-root #28849

Merged
merged 6 commits into from
Jan 3, 2025
Merged

Docker: run as non-root #28849

merged 6 commits into from
Jan 3, 2025

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 2, 2025

Notes: The docker image now runs as a non-root user

Empirically, listening on port 80 with non-root works just fine nowadays, so we may as well do that.

The hacks to nginx.conf are based on "Running nginx as a non-root user" in https://hub.docker.com/_/nginx (and the dockerfile for nginxinc/nginx-unprivileged). Turns out we don't need many hacks, for our usecase.

Based on #28840
Fixes #25926

@richvdh richvdh requested a review from a team as a code owner January 2, 2025 17:03
@richvdh richvdh requested a review from dbkr January 2, 2025 17:03
@richvdh richvdh changed the base branch from develop to rav/docker/configurable_port January 2, 2025 17:03
Dockerfile Outdated Show resolved Hide resolved
Base automatically changed from rav/docker/configurable_port to develop January 3, 2025 12:02
@richvdh richvdh added this pull request to the merge queue Jan 3, 2025
Merged via the queue into develop with commit 3fb10ba Jan 3, 2025
38 checks passed
@richvdh richvdh deleted the rav/docker/unprivileged branch January 3, 2025 23:12
remram44 added a commit to remram44/matrix-helm that referenced this pull request Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider providing a Docker image that doesn't run as root
2 participants