Skip to content

Commit c39d03f

Browse files
committed
improve Dockerfile
1 parent 88f4dd0 commit c39d03f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ RUN mkdir -p /usr/local/etc/php/conf.d/ && \
3232
echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/xdebug.ini
3333

3434
COPY composer.json composer.lock ./
35-
RUN composer install --prefer-dist --optimize-autoloader
35+
RUN composer install --prefer-dist --optimize-autoloader && \
36+
composer clear-cache && \
37+
rm -rf /tmp/* && \
38+
# NOTE: Хак на случай, если --prefer-dist не срабатывает и качаются зависимости из исходников
39+
find vendor -type d -name '.git' -exec rm -rf \{\} \+
3640

3741
COPY . .

0 commit comments

Comments
 (0)