From aadc62794d539b891e5a0a00949d8fe29aad41b4 Mon Sep 17 00:00:00 2001 From: Bram Kelchtermans Date: Sun, 23 Feb 2025 21:20:19 +0100 Subject: [PATCH] add start command to react docker --- Dockers/remote-react-container/entrypoint.sh | 5 ++++- Dockers/remote-react-container/version | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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