From d25e8e793bc99815a942327f7f32b6358e52e512 Mon Sep 17 00:00:00 2001 From: lklynet Date: Thu, 1 Jan 2026 23:24:13 -0500 Subject: [PATCH] build(docker): update base image and improve build process - Switch to node:18-bookworm for better stability - Add required build tools (python3, make, g++) - Use npm ci for more reliable production installs - Update package.json metadata and dependencies --- Dockerfile | 9 +++++++-- package.json | 22 ++++++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a4659da..f12397d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,15 @@ -FROM node:18 +FROM node:18-bookworm WORKDIR /app +RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/* + +ENV npm_config_build_from_source=true +ENV PYTHON=/usr/bin/python3 + COPY package*.json ./ -RUN npm install --production +RUN npm ci --only=production COPY server.js ./ diff --git a/package.json b/package.json index fef8bd8..2413f26 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,29 @@ { "name": "hypermind", "version": "1.0.0", - "description": "", + "description": "A decentralized P2P counter of active deployments", "main": "server.js", "scripts": { "start": "node server.js", "test": "echo \"Error: no test specified\" && exit 1" }, - "keywords": [], - "author": "", - "license": "ISC", + "repository": { + "type": "git", + "url": "git+https://github.com/lklynet/hypermind.git" + }, + "keywords": [ + "p2p", + "decentralized", + "counter", + "hyperswarm", + "docker" + ], + "author": "lklynet", + "license": "MIT", + "bugs": { + "url": "https://github.com/lklynet/hypermind/issues" + }, + "homepage": "https://github.com/lklynet/hypermind#readme", "type": "commonjs", "dependencies": { "b4a": "^1.7.3",