Files
opnform-host-nginx/docker/node-entrypoint
Julien Nahum fd9067b470 518 setup env command (#519)
* Created command and cleaned

* Simplified docker setup, created script to generate .env

* add git ignore file back
2024-08-08 16:33:01 +02:00

21 lines
290 B
Bash

#!/bin/sh
main() {
if [ "$1" = "bash" ]; then
"$@"
else
if [ -f .env ]; then
. .env
else
echo "Warning: .env file not found"
fi
run_server "$@"
fi
}
run_server() {
echo "Running node $@"
"$@"
}
main "$@"