SpaceNinjaServer/docker-entrypoint.sh
Sainan f84cc54c97
All checks were successful
Build / build (push) Successful in 48s
Build Docker image / docker-amd64 (push) Successful in 54s
Build Docker image / docker-arm64 (push) Successful in 58s
chore: use build & start process for development as well (#2222)
Reviewed-on: #2222
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-06-20 18:30:52 -07:00

9 lines
255 B
Bash
Executable File

#!/bin/bash
set -e
if [ ! -f conf/config.json ]; then
jq --arg value "mongodb://openwfagent:spaceninjaserver@mongodb:27017/" '.mongodbUrl = $value' /app/config.json.example > /app/conf/config.json
fi
exec npm run start -- --configPath conf/config.json