From 743f08189cc166c8e1b774df478d998aff6a5b18 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Wed, 27 Jan 2021 22:15:11 +0100 Subject: [PATCH] Add docker-entrypoint.sh - used by Dockerfile --- docker-entrypoint.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docker-entrypoint.sh diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100644 index 00000000..c3002570 --- /dev/null +++ b/docker-entrypoint.sh @@ -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 \ No newline at end of file