SpaceNinjaServer/docker-entrypoint.sh
Sainan 71d2ea7048
All checks were successful
Build / build (pull_request) Successful in 1m15s
chore: use raw running in docker image
We can rely on having up-to-date Node.js here, and reducing the size by like ~55 MiB seems decent.
2025-08-27 22:12:10 +02:00

9 lines
253 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-vanilla.json > /app/conf/config.json
fi
exec npm run raw -- --configPath conf/config.json