feat: build tailwind for production on docker build

This commit is contained in:
2024-11-23 12:40:30 +01:00
parent 5e81db4c98
commit 45ad1f5fb0
2 changed files with 13 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
# download and install Node.js (you may need to restart the terminal)
nvm install 22
python manage.py tailwind build
python manage.py collectstatic --noinput
rm -rf ~/.nvm
rm -rf ~/.npm
rm -rf ~/.bower