matrix-dimension/docker-entrypoint.sh
Mathijs van Gorcum 8d4488be72 add docker file
2018-07-19 20:57:07 +02:00

13 lines
426 B
Bash
Executable file

#!/bin/bash
set -e
cd /home/node/matrix-dimension/
if [ -f "/data/config.yaml" ]; then
cp /data/config.yaml /home/node/matrix-dimension/config/production.yaml
NODE_ENV=production node build/app/index.js
else
cp /home/node/matrix-dimension/config/default.yaml /data/config.yaml
echo "A default config file has been placed in the /data/ volume please review and make any required changes and start the container again"
fi