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

Dockerfile: fix git repository ownership #33

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

chmeliik
Copy link
Member

Builds have been failing with:

fatal: detected dubious ownership in repository at '/src/syft'
To add an exception for this directory, call:

    git config --global --add safe.directory /src/syft

This was caused by the --chown=1001 flag in the COPY commands. The
current builder image runs as root and git doesn't like the UID
mismatch.

Signed-off-by: Adam Cmiel [email protected]

Builds have been failing with:

    fatal: detected dubious ownership in repository at '/src/syft'
    To add an exception for this directory, call:

        git config --global --add safe.directory /src/syft

This was caused by the --chown=1001 flag in the COPY commands. The
current builder image runs as root and git doesn't like the UID
mismatch.

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik
Copy link
Member Author

Approved in #34, merging

@chmeliik chmeliik merged commit 67b0332 into main Mar 13, 2024
1 check passed
@chmeliik chmeliik deleted the fix-git-repo-ownership branch March 13, 2024 12:26
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