Skip to content

Commit f908e3a

Browse files
mark working directory as safe with git (#814)
Co-authored-by: Nathan Barrett <[email protected]>
1 parent 1463ff5 commit f908e3a

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

runtimes/8.0/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.0
5959
RUN userdel -r ubuntu
6060
RUN groupadd --force -g $WWWGROUP sail
6161
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
62+
RUN git config --global --add safe.directory /var/www/html
6263

6364
COPY start-container /usr/local/bin/start-container
6465
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

runtimes/8.1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.1
5858
RUN userdel -r ubuntu
5959
RUN groupadd --force -g $WWWGROUP sail
6060
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
61+
RUN git config --global --add safe.directory /var/www/html
6162

6263
COPY start-container /usr/local/bin/start-container
6364
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

runtimes/8.2/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.2
5959
RUN userdel -r ubuntu
6060
RUN groupadd --force -g $WWWGROUP sail
6161
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
62+
RUN git config --global --add safe.directory /var/www/html
6263

6364
COPY start-container /usr/local/bin/start-container
6465
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

runtimes/8.3/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.3
6262
RUN userdel -r ubuntu
6363
RUN groupadd --force -g $WWWGROUP sail
6464
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
65+
RUN git config --global --add safe.directory /var/www/html
6566

6667
COPY start-container /usr/local/bin/start-container
6768
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

runtimes/8.4/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.4
6262
RUN userdel -r ubuntu
6363
RUN groupadd --force -g $WWWGROUP sail
6464
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
65+
RUN git config --global --add safe.directory /var/www/html
6566

6667
COPY start-container /usr/local/bin/start-container
6768
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

0 commit comments

Comments
 (0)