mirror of
https://github.com/vimagick/dockerfiles.git
synced 2026-01-03 03:27:27 +01:00
update nodebb
This commit is contained in:
@@ -37,4 +37,4 @@ COPY docker-entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
EXPOSE 4567
|
||||
CMD ["npm", "start"]
|
||||
CMD ["./nodebb", "start"]
|
||||
|
||||
@@ -8,6 +8,7 @@ nodebb:
|
||||
- ./data:/var/lib/nodebb
|
||||
- /usr/src/nodebb/build
|
||||
- /usr/src/nodebb/node_modules
|
||||
- /usr/src/nodebb/public/uploads
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
|
||||
@@ -5,7 +5,7 @@ export NODE_ENV=production
|
||||
export silent=false
|
||||
export daemon=false
|
||||
|
||||
if [[ "$*" == npm*start* ]]; then
|
||||
if [[ "$*" == ./nodebb*start* ]]; then
|
||||
if [ ! -e "$BB_CONTENT/config.json" ]; then
|
||||
if [ -e "$BB_SOURCE/config.json" ]; then
|
||||
cp "$BB_SOURCE/config.json" "$BB_CONTENT/config.json"
|
||||
|
||||
Reference in New Issue
Block a user