Skip to content

Commit 2994a08

Browse files
committed
chore: default composer cache to home directory
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 44af83e commit 2994a08

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121
COMPOSER_HOME: /var/www/.composer
2222
volumes:
2323
- ./:/var/www/html
24-
# Optional override (default shown): COMPOSER_CACHE_DIR=/tmp/composer-cache
25-
- ${COMPOSER_CACHE_DIR:-/tmp/composer-cache}:/var/www/.composer/
24+
# Optional override (default shown): COMPOSER_CACHE_DIR=${HOME}/.composer
25+
- ${COMPOSER_CACHE_DIR:-${HOME}/.composer}:/var/www/.composer/
2626
- ./.profile:/var/www/html/.profile
2727
command: ["bash", "-lc", "composer --version && bash"]

0 commit comments

Comments
 (0)