SpaceNinjaServer/docker-entrypoint.sh
Sainan 777bd5e51b
All checks were successful
Build / build (push) Successful in 57s
Build / build (pull_request) Successful in 1m39s
chore(docker): use file-based config & precompile code in image
2025-06-18 20:35:52 +02:00

9 lines
239 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 conf/config.json