Updated files for docker

This commit is contained in:
2022-04-19 18:08:07 +02:00
parent f0fae39614
commit cfffdcd980
5 changed files with 50 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh
if [ ! -d "vendor" ] && [ -f "composer.json" ]; then
echo ""
echo "########################################"
echo "# vendor directory not found... #"
echo "########################################"
composer install
fi
if [ ! -d "node_modules" ] && [ -f "package.json" ]; then
echo ""
echo "########################################"
echo "# node_modules directory not found... #"
echo "########################################"
npm install
npm run dev
fi
exec "$@"