mirror of
https://github.com/lklynet/hypermind.git
synced 2026-05-03 17:40:29 +00:00
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:
+7
-2
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user