2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 22:39:25 +01:00

add nodebb

This commit is contained in:
kev
2016-01-16 07:19:42 +08:00
parent 5fe4483a78
commit 3cd51c7cbc
11 changed files with 203 additions and 2 deletions

20
nodebb/docker-entrypoint.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -e
export NODE_ENV=production
export silent=false
export daemon=false
if [[ "$*" == npm*start* ]]; then
if [ ! -e "$BB_CONTENT/config.json" ]; then
sed "s/SECRET/$(node -e 'console.log(require("node-uuid").v4())')/" \
"$BB_SOURCE/config.example.json" > "$BB_CONTENT/config.json"
npm install connect-redis
fi
ln -sf "$BB_CONTENT/config.json" "$BB_SOURCE/config.json"
exec "$@"
fi
exec "$@"