I have a container with node:18-alpine3.14 as base image. I have docker-compose file with
command: ["prepare_config.sh","--","npm", "run", "start-p"]
in prepare config
#!/bin/bash
json_data=$(cat <<EOF
{
"url": "$URL"
}
EOF
)
echo "$json_data";
When I try to run this code I get error
prepare_config.sh:2
json_data=$(cat <<EOF
^^^
SyntaxError: missing ) after argument list
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:827:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
Node.js v18.1.0
Could you help fix that?