From b5ee0a1429cf6376028ff8c5892d991cedcccb14 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Tue, 29 Oct 2024 15:57:43 +0100 Subject: [PATCH] Update Docker command --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 39795b2..bda0069 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: - ./:/home/node/app:Z ports: - ${SERVER_PORT}:3000 - command: "npm start" + command: bash -c "cd /home/node/app && npm install && npm start" restart: always healthcheck: test: (ps ax | grep -q "[n]ode dist/index.js" && echo "Ok") || exit 1