Skip to content

GIT: Fix dockerfile build to not user root and be friendly to execute as non root #2023

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

IJOL
Copy link

@IJOL IJOL commented Jun 5, 2025

Description

Updates Dockerfile to not use root and be able to run git as non root

Server Details

  • Server: git
  • Changes to: Dockerfile

…ctors the Dockerfile to ensure the virtual environment and all dependencies are installed entirely under /app/.venv, avoiding any symlinks or dependencies on /root. The image is now safe to run with any UID/GID (e.g., with --user 1000:1000), and all files are accessible to non-root users. This improves security and compatibility for containerized deployments in restricted environments.
@IJOL IJOL force-pushed the fix/dockerfile-nonroot branch from a6e9715 to df3400b Compare June 5, 2025 10:55
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