Skip to content

Commit d25e8e7

Browse files
committed
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
1 parent 6ca4c9e commit d25e8e7

2 files changed

Lines changed: 25 additions & 6 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
FROM node:18
1+
FROM node:18-bookworm
22

33
WORKDIR /app
44

5+
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
6+
7+
ENV npm_config_build_from_source=true
8+
ENV PYTHON=/usr/bin/python3
9+
510
COPY package*.json ./
611

7-
RUN npm install --production
12+
RUN npm ci --only=production
813

914
COPY server.js ./
1015

package.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
{
22
"name": "hypermind",
33
"version": "1.0.0",
4-
"description": "",
4+
"description": "A decentralized P2P counter of active deployments",
55
"main": "server.js",
66
"scripts": {
77
"start": "node server.js",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
10-
"keywords": [],
11-
"author": "",
12-
"license": "ISC",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/lklynet/hypermind.git"
13+
},
14+
"keywords": [
15+
"p2p",
16+
"decentralized",
17+
"counter",
18+
"hyperswarm",
19+
"docker"
20+
],
21+
"author": "lklynet",
22+
"license": "MIT",
23+
"bugs": {
24+
"url": "https://github.com/lklynet/hypermind/issues"
25+
},
26+
"homepage": "https://github.com/lklynet/hypermind#readme",
1327
"type": "commonjs",
1428
"dependencies": {
1529
"b4a": "^1.7.3",

0 commit comments

Comments
 (0)