Skip to content

Commit

Permalink
Set git safe directory to avoid dubious ownership error (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuhui committed Feb 22, 2023
1 parent 39ed53d commit b32dcd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openapi/openapi-generator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ RUN mkdir /source && \
cd /source && \
git clone --progress -n https://github.com/${OPENAPI_GENERATOR_USER_ORG}/openapi-generator.git && \
cd openapi-generator && \
git checkout $OPENAPI_GENERATOR_COMMIT
git checkout $OPENAPI_GENERATOR_COMMIT && \
git config --system --add safe.directory /source/openapi-generator

# Build it and persist local repository
RUN chmod -R go+rwx /root && umask 0 && cd /source/openapi-generator && \
Expand Down

0 comments on commit b32dcd6

Please sign in to comment.