Configure git to trust /workdir

Resolves: #220
This commit is contained in:
Matteo Landi
2023-04-13 15:13:13 +02:00
committed by GitHub
parent bc8875e020
commit 4b36df5dab

View File

@@ -31,6 +31,10 @@ RUN gem build mrsk.gemspec && \
# Set the working directory to /workdir
WORKDIR /workdir
# Tell git it's safe to access /workdir/.git even if
# the directory is owned by a different user
RUN git config --global --add safe.directory /workdir
# Set the entrypoint to run the installed binary in /workdir
# Example: docker run -it -v "$PWD:/workdir" mrsk init
ENTRYPOINT ["mrsk"]