1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-02-07 13:42:50 +02:00

update nodebb

This commit is contained in:
kev 2018-08-25 11:34:33 +08:00
parent 952136400f
commit 82e98b0d3f
7 changed files with 9 additions and 6 deletions

View File

@ -37,4 +37,4 @@ COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 4567
CMD ["npm", "start"]
CMD ["./nodebb", "start"]

View File

@ -20,6 +20,7 @@ nodebb:
- ./data:/var/lib/nodebb
- /usr/src/nodebb/build
- /usr/src/nodebb/node_modules
- /usr/src/nodebb/public/uploads
restart: always
redis:
@ -47,9 +48,9 @@ $ firefox http://localhost:4567
```bash
$ docker-compose pull nodebb
$ docker-compose exec nodebb sh
>>> ./nodebb build
>>> ./nodebb upgrade
>>> exit
```
[1]: https://nodebb.org/
[2]: https://docs.nodebb.org/en/latest/
[2]: https://docs.nodebb.org/

View File

@ -37,4 +37,4 @@ COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 4567
CMD ["npm", "start"]
CMD ["./nodebb", "start"]

View File

@ -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:

View File

@ -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"

View File

@ -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:

View File

@ -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"