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
This commit is contained in:
lklynet
2026-01-01 23:24:13 -05:00
parent 6ca4c9e21a
commit d25e8e793b
2 changed files with 25 additions and 6 deletions
+7 -2
View File
@@ -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 ./
+18 -4
View File
@@ -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",