diff --git a/Dockers/remote-react-container/entrypoint.sh b/Dockers/remote-react-container/entrypoint.sh index e945447..c2616b3 100644 --- a/Dockers/remote-react-container/entrypoint.sh +++ b/Dockers/remote-react-container/entrypoint.sh @@ -112,5 +112,8 @@ sed -i "s/^ nodename:.*/ nodename: $HOSTNAME/" "$CONFIG_FILE" # Start Teleport in the background nohup teleport start & +# Use NODE_START_COMMAND if set, otherwise default to start:dev +START_COMMAND=${NODE_START_COMMAND:-"start:dev"} + # Start the application with pm2 -exec pm2-runtime "yarn start:dev" +exec pm2-runtime "yarn $START_COMMAND" diff --git a/Dockers/remote-react-container/version b/Dockers/remote-react-container/version index 42f7d23..f398a20 100644 --- a/Dockers/remote-react-container/version +++ b/Dockers/remote-react-container/version @@ -1 +1 @@ -2.1 \ No newline at end of file +3.0 \ No newline at end of file