From 4c6a03fe4e9c8465b0271951a7afb3464c1ada71 Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Tue, 27 Apr 2021 09:11:47 -0500 Subject: [PATCH] cleanup node dir (#1490) --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d0b63b00..5594ecce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -288,7 +288,11 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repo && cd .. \ && rm -r luarocks-3.3.1-super-linter/ \ && luarocks install luacheck \ - && mv /etc/R/* /usr/lib/R/etc/ + && mv /etc/R/* /usr/lib/R/etc/ \ + && find /node_modules/ -type f -name 'LICENSE' -exec rm {} + \ + && find /node_modules/ -type f -name '*.md' -exec rm {} + \ + && find /node_modules/ -type f -name '*.txt' -exec rm {} + \ + && find /usr/ -type f -name '*.md' -exec rm {} + ################################################################################ # Grab small clean image #######################################################