Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: remove apt curl from selfhosting healthcheck

Sidwebworks88f2729ae6d6
diff --git a/Dockerfile b/Dockerfile
index ae106b8519..c8cc23ac4f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,7 +24,6 @@ ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
RUN corepack enable
ENV NODE_ENV=production
ENV PORT=3000
-RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
COPY --from=deps /repo/package.json /repo/pnpm-lock.yaml /repo/pnpm-workspace.yaml /repo/.npmrc ./
COPY --from=deps /repo/node_modules ./node_modules
COPY --from=deps /repo/packages ./packages
diff --git a/contrib/deploying/simple-docker-caddy/stack.yml b/contrib/deploying/simple-docker-caddy/stack.yml
index b108648f04..88820191c1 100644
--- a/contrib/deploying/simple-docker-caddy/stack.yml
+++ b/contrib/deploying/simple-docker-caddy/stack.yml
@@ -82,7 +82,7 @@ services:
volumes:
- *shim
healthcheck:
- test: ["CMD", "curl", "-fsS", "http://localhost:3000/health"]
+ test: ["CMD", "node", "-e", "fetch('http://localhost:3000/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 15s
timeout: 6s
retries: 5
@@ -121,7 +121,7 @@ services:
volumes:
- *shim
healthcheck:
- test: ["CMD", "curl", "-fsS", "http://localhost:3000/health"]
+ test: ["CMD", "node", "-e", "fetch('http://localhost:3000/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 15s
timeout: 6s
retries: 5
diff --git a/package.json b/package.json
index 2527b26cd6..7617873c2c 100755
--- a/package.json
+++ b/package.json
@@ -102,6 +102,7 @@
"core-js",
"esbuild",
"protobufjs",
+ "sharp",
"supabase"
],
"patchedDependencies": {