We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d99d9 commit 8c79a9cCopy full SHA for 8c79a9c
Makefile
@@ -4,6 +4,7 @@ SHELL=bash
4
.PHONY: *
5
6
DOCKER_CGROUP:=$(shell cat /proc/1/cgroup | grep docker | wc -l)
7
+COMPOSER_CACHE_DIR=$(shell composer config --global cache-dir -q || echo ${HOME}/.composer/cache)
8
9
ifneq ("$(wildcard /.dockerenv)","")
10
IN_DOCKER=TRUE
@@ -18,6 +19,7 @@ ifeq ("$(IN_DOCKER)","TRUE")
18
19
else
20
DOCKER_RUN=docker run --rm -it \
21
-v "`pwd`:`pwd`" \
22
+ -v "${COMPOSER_CACHE_DIR}:/home/app/.composer/cache" \
23
-w "`pwd`" \
24
"wyrihaximusnet/php:7.4-nts-alpine3.12-dev"
25
endif
0 commit comments