Skip to content

Commit 752bb0c

Browse files
author
Jeremy Price
committed
remove deeper .git directories in vendor
1 parent d2df1cd commit 752bb0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
110110

111111
# Get dependencies
112112
USER docker
113-
RUN composer install --no-dev --working-dir=/var/www/html --prefer-source && rm -rf /var/www/html/vendor/*/.git && rm -rf /home/docker/.cache/composer
113+
RUN composer install --no-dev --working-dir=/var/www/html --prefer-source && \
114+
rm -rf /var/www/html/vendor/*/.git /var/www/html/vendor/*/*/.git /home/docker/.cache/composer
114115
USER root
115116

116117
############### APPLICATION INSTALL/INIT #################

0 commit comments

Comments
 (0)