Skip to content

Commit 4caf3ab

Browse files
committed
Docker: remove npm caches in node images.
1 parent 9292710 commit 4caf3ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/docker/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ VARIANT_node ?= $(VARIANT)
4040
$(foreach nodeversion, $(VERSIONS_node), $(eval CONTAINER_node$(nodeversion) = node:$(nodeversion)-$(VARIANT_node)))
4141
CONFIGURE_node ?= nodejs --node-gyp=/usr/local/bin/node-gyp
4242
INSTALL_node ?= node node-install libunit-install
43-
RUN_node ?= /bin/true
43+
RUN_node ?= rm -rf /root/.cache/ \&\& rm -rf /root/.npm
4444
MODULE_PREBUILD_node ?= npm -g install node-gyp
4545

4646
VERSIONS_perl ?= 5.36 5.38

0 commit comments

Comments
 (0)