From 01c779a40944326fb8e6cfa5fe5bd799fd79a67d Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 5 Nov 2022 10:36:52 -0500 Subject: [PATCH] set cache path --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c3e2c52ee..df6e9cce0 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ version: echo "VERSION=\"$(VERSION)-$(COMMIT_HASH)\"" > frigate/version.py build_web: - docker run --volume ${PWD}/web:/web --volume ${PWD}/.npm:/.npm -w /web --group-add $(CURRENT_GID) -u $(CURRENT_UID):$(CURRENT_GID) node:16 /bin/bash -c "npm install && npm run build" + docker run -e npm_config_cache=/web/.npm --volume ${PWD}/web:/web -w /web --group-add $(CURRENT_GID) -u $(CURRENT_UID):$(CURRENT_GID) node:16 /bin/bash -c "npm install && npm run build" nginx_frigate: docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag blakeblackshear/frigate-nginx:1.0.2 --file docker/Dockerfile.nginx .