From 0f147365251b3d3dc4378a48db35e4d5a25ab618 Mon Sep 17 00:00:00 2001 From: Andrii <72581339+a-nomad@users.noreply.github.com> Date: Thu, 5 Feb 2026 13:25:35 +0100 Subject: [PATCH] Remove healthcheck. Rollback to single thread (#244) This PR removes healthcheck infrastructure and reverts the application to single-threaded execution mode. The Dockerfile no longer installs wget, a dependency for health checks, while the package.json start script is updated to run the application directly with Node instead of using PM2 runtime with clustering support for running multiple instances. --- Dockerfile | 3 --- website/package.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a9d2664d..a4b6201e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,9 +20,6 @@ FROM node:23-alpine # Create a non-root user and group RUN addgroup -S appgroup && adduser -S appuser -G appgroup -# Install dependencies needed for health checks with pinned version -RUN apk add --no-cache wget=1.25.0-r1 - # Copy layer wfrom build image COPY --chown=appuser:appgroup --from=build /app /app diff --git a/website/package.json b/website/package.json index ab340acd..69fd8d8b 100644 --- a/website/package.json +++ b/website/package.json @@ -4,7 +4,7 @@ "description": "Apostrophe CMS website", "main": "app.js", "scripts": { - "start": "node scripts/generate_constants.js && node app @apostrophecms/asset:build && pm2-runtime app.js -i 2", + "start": "node scripts/generate_constants.js && node app @apostrophecms/asset:build && node app.js", "dev": "node scripts/generate_constants.js && nodemon", "build": "node scripts/generate_constants.js && NODE_ENV=production node app.js apostrophe:generation", "serve": "NODE_ENV=production node app.js",