mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 16:35:23 +00:00
Make sure the npm and apt-get caches are cleaned.
This commit is contained in:
parent
e3188065d7
commit
370f1bf7ce
@ -2,6 +2,9 @@ if [ $NODE_ENV == 'production' ]; then
|
||||
node ./node_modules/coffee-script/bin/coffee -c ./src
|
||||
# We don't need coffee-script at runtime
|
||||
npm uninstall coffee-script
|
||||
# Empty the apt and npm caches of the packages we installed
|
||||
npm cache clean
|
||||
apt-get clean
|
||||
# Remove deploy key
|
||||
rm -rf /root/.ssh/* deploy_key
|
||||
# Remove unnecessary source files
|
||||
|
Loading…
x
Reference in New Issue
Block a user