Skip to content

Commit 2914e6b

Browse files
authored
Docker: Remove unused NPM files (#625)
* Docker: Remove unused NPM files * cleanup
1 parent 0ab2684 commit 2914e6b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ WORKDIR /usr/src/app
1212

1313
RUN apk --no-cache upgrade && \
1414
apk add --no-cache udev ttf-opensans unifont chromium chromium-swiftshader ca-certificates dumb-init && \
15+
# Remove NPM-related files and directories
16+
rm -rf /usr/local/lib/node_modules/npm && \
17+
rm -rf /usr/local/bin/npm && \
18+
rm -rf /usr/local/bin/npx && \
19+
rm -rf /root/.npm && \
20+
rm -rf /root/.node-gyp && \
21+
# Clean up
1522
rm -rf /tmp/*
1623

1724
# Build stage

0 commit comments

Comments
 (0)