Spaces:
Sleeping
Sleeping
Download docker-entrypoint.sh from jinksQspider/openWa: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/docker-entrypoint.sh
- Command line
-
hf download hf://spaces/jinksQspider/openWa/docker-entrypoint.sh
-
curl -L -o docker-entrypoint.sh https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/docker-entrypoint.sh
503 Bytes
| # Runs as root (via dumb-init). Fixes named-volume ownership then drops to the | |
| # openwa user via gosu so the Node process never holds root privileges. | |
| set -e | |
| mkdir -p /app/data/sessions /app/data/media /app/data/plugins | |
| chown -R openwa:openwa /app/data | |
| # "$@" = CMD from Dockerfile (default: node dist/main). | |
| # gosu performs exec, so the node process replaces this shell and becomes the | |
| # direct child of dumb-init (PID 1), which can therefore forward SIGTERM cleanly. | |
| exec gosu openwa "$@" | |