From 4ca113a7d7d7ef8bb38d7be3330184c5d54c9a21 Mon Sep 17 00:00:00 2001 From: Bram Kelchtermans Date: Thu, 8 May 2025 16:53:34 +0200 Subject: [PATCH] ffs --- Dockers/strapi/entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockers/strapi/entrypoint.sh b/Dockers/strapi/entrypoint.sh index 2dc3249..7d01b74 100644 --- a/Dockers/strapi/entrypoint.sh +++ b/Dockers/strapi/entrypoint.sh @@ -9,4 +9,10 @@ fi cd /opt/app +# If node_modules is missing, install dependencies +if [ ! -d node_modules ]; then + echo "node_modules not found, running npm ci..." + npm ci +fi + exec "$@"