add docker file

This commit is contained in:
Farid Saravi
2021-01-29 12:13:55 +00:00
parent 332b90b5fd
commit ffda8e47c7
4 changed files with 75 additions and 0 deletions
Executable
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root" && exit 0;
fi
git pull origin master
npm install
npm run prod
cp -r /home/administrator/apps/cssd/public/js/vue /home/administrator/apps/nginx/www/cssd/public/js/
cp /home/administrator/apps/cssd/public/mix-manifest.json /home/administrator/apps/nginx/www/cssd/public/
chown -R www-data:www-data /home/administrator/apps/nginx/www/cssd/public
if [ $# -eq 0 ]; then
docker-compose up -d --build app
fi