Dockerfile: set /src as git safe directory for root
This commit is contained in:
parent
bff5e318f5
commit
bdbe82c3ea
1 changed files with 3 additions and 3 deletions
|
@ -2,6 +2,6 @@ from debian:stable-slim
|
|||
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends -y python3-all python3-dev python3-pip python3-venv build-essential pylint git && apt-get clean && rm -fr rm -rf /var/lib/apt/lists/*
|
||||
RUN pip install pre-commit --break-system-packages
|
||||
RUN mkdir /tmp/src
|
||||
COPY .pre-commit-config.yaml .pre-commit-pylint fake_python_module /tmp/src/
|
||||
RUN cd /tmp/src && git init && git add * && pre-commit autoupdate && pre-commit run --all-files && rm -fr /tmp/src
|
||||
RUN mkdir /src && git config --global --add safe.directory /src
|
||||
COPY .pre-commit-config.yaml .pre-commit-pylint fake_python_module /src/
|
||||
RUN cd /src && git init && git add * && pre-commit autoupdate && pre-commit run --all-files && rm -fr /src
|
||||
|
|
Loading…
Reference in a new issue