6 lines
195 B
Bash
6 lines
195 B
Bash
#!/bin/sh
|
|
# Fix ownership of data directory (volume mounts may be root-owned)
|
|
chown -R node:node /app/data
|
|
# Drop to node user and run the app
|
|
exec su -s /bin/sh -c "exec node src/index.js" node
|