Skip to content

Commit 62c98dd

Browse files
committed
improved build cache
1 parent 7b4662d commit 62c98dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
2323

2424
WORKDIR /opt/project
2525

26-
COPY composer.json composer.loc[k] phpunit.xml.dist phpunit.coverage.xml.dist psalm.xml .php-cs-fixer.php ./
26+
COPY composer.json composer.loc[k] ./
27+
28+
RUN composer install
29+
30+
COPY phpunit.xml.dist phpunit.coverage.xml.dist psalm.xml .php-cs-fixer.php ./
2731
COPY src/ src/
2832
COPY tests/ tests/
2933
COPY .git/ .git/
3034

3135

32-
RUN composer install
33-
3436

0 commit comments

Comments
 (0)