Skip to content

Commit dfcd6ee

Browse files
committed
[docker] mark doc directories as safe for git to use
docker mounting can cause the doc directory to be owned by a different user to the one running inside the container, which git complains about, but is fine for our use-case
1 parent 4362e78 commit dfcd6ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ ARG DEBIAN_FRONTEND=noninteractive
33
ARG XDEBUG_MODE=coverage
44
RUN apt update -y && apt install -y git composer php-cli php-dom php-curl php-xdebug vim
55
WORKDIR /app
6+
RUN git config --global --add safe.directory /app/generator/doc/doc-en/en && \
7+
git config --global --add safe.directory /app/generator/doc/doc-en/doc-base
68
CMD cd /app/generator/doc && ./update.sh && \
79
cd /app && composer install && \
810
cd /app/generator && composer install && php ./safe.php generate

0 commit comments

Comments
 (0)