From fd0d3c072b51b74d76e6749b3810f43f6b4d05ac Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Fri, 6 Sep 2024 17:23:11 -0700 Subject: [PATCH] Correct Build to start redis-server on start --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 09eeba8..8acb1c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,4 +83,5 @@ RUN npm run build RUN npm install pm2 -g EXPOSE 8000 -CMD [ "pm2-runtime", "ecosystem.config.cjs" ] \ No newline at end of file + +CMD ["sh", "-c", "redis-server --daemonize yes && pm2-runtime ecosystem.config.cjs"]