On that note I created a nice little shell script to update etc if you are using docker
Make sure you update package.json before running this script.
This will assume your docker-compose using name of strapi
Just save as update.sh then give execute permissions
chmod +x update.sh
#!/bin/bash
echo "Executing order 66"
docker-compose down &> /dev/null &&
rm -rf data/
rm -rf app/node_modules/
rm -rf app/.cache/
rm -rf app/build/
cho "Order 66 have been executed commander"
tput setaf 2; echo "All your base are belong to us"
echo "Upgrading systems"
docker-compose run strapi yarn install --silent &&
docker-compose run strapi yarn build --clean &&
echo "System upgrade complete commander"
echo "Starting all systems"
docker-compose up -d
tput setaf 2; echo "All system are go and green, ready for your control commander at http:/localhost/admin"