mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 22:23:13 +00:00
Save space by removing more npm install artifacts.
This commit is contained in:
parent
701467ee46
commit
c82cec018d
@ -2,6 +2,10 @@ set -o errexit
|
||||
set -o pipefail
|
||||
|
||||
if [[ $NODE_ENV == 'production' ]]; then
|
||||
# Remove node-gyp cache
|
||||
rm -rf ~/.node-gyp/
|
||||
# Remove cached git deps
|
||||
rm -rf /tmp/*
|
||||
# Remove the c files we no longer need (the sqlite3 node module has a massive ~5M c file)
|
||||
find . -name '*.c' -delete
|
||||
# And the tar files (sqlite3 module again)
|
||||
|
Loading…
Reference in New Issue
Block a user