Skip to content

Commit cd5ecfb

Browse files
committed
Teach git in the docker container to trust our git repo
Without this it sees the git repo as being owned by the external user, which is different to the root user that is running in the container. This seems to mostly impact CI, where the submodules aren't cloned by default.
1 parent 4483aa6 commit cd5ecfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ ENV GLOBAL_GEMS=true
44

55
WORKDIR /usr/src/docs
66

7+
RUN git config --global --add safe.directory /usr/src/docs && git config --global --add safe.directory /usr/src/docs/_sass/brand
8+
79
RUN gem install 'bundler:~>1' rake
810

911
COPY . ./

0 commit comments

Comments
 (0)