Add docker-entrypoint.sh - used by Dockerfile

This commit is contained in:
Ruben van de Ven 2021-01-27 22:15:11 +01:00
parent 34aab31921
commit 743f08189c
1 changed files with 26 additions and 0 deletions

26
docker-entrypoint.sh Normal file
View File

@ -0,0 +1,26 @@
#!/bin/sh
set -e
echo "HALLO!"
echo "Starting the mongodb daemon"
/usr/bin/mongod --fork --syslog
# echo "navigating to volume /var/www"
# cd /var/www
# echo "Creating soft link"
# ln -s /opt/mysite mysite
# a2enmod headers
# service apache2 restart
# a2ensite mysite.conf
# a2dissite 000-default.conf
# service apache2 reload
if [ -z "$1" ]
then
exec npm run start:prod
else
exec "$1"
fi