dockerfile/examples/standardnotes/official-src/server-main/packages/analytics/docker/entrypoint.sh

23 lines
353 B
Bash
Raw Permalink Normal View History

2024-03-15 14:52:38 +08:00
#!/bin/sh
set -e
COMMAND=$1 && shift 1
case "$COMMAND" in
'start-worker' )
echo "[Docker] Starting Worker..."
exec node docker/entrypoint-worker.js
;;
'report' )
echo "[Docker] Starting Usage Report Generation..."
exec node docker/entrypoint-report.js
;;
* )
echo "[Docker] Unknown command"
;;
esac
exec "$@"