Skip to content

Commit 4578250

Browse files
committed
im so dumb
1 parent d5f5176 commit 4578250

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ FROM node:18-alpine
22

33
WORKDIR /app
44

5-
RUN apk add --no-cache python3 make g++
5+
# Install build dependencies
6+
RUN apk add --no-cache python3 make g++ linux-headers
67

78
COPY package*.json ./
8-
RUN npm install --production
9+
10+
# Install dependencies and rebuild native modules
11+
RUN npm install --production && npm rebuild
912

1013
COPY server.js ./
1114

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ docker run -d \
4343
--name hypermind \
4444
--network host \
4545
--restart unless-stopped \
46+
-e PORT=3000 \
4647
ghcr.io/lklynet/hypermind:latest
4748

4849
```
4950

5051
> **⚠️ CRITICAL NETWORK NOTE:**
5152
> Use `--network host`. This is a P2P application that needs to punch through NATs. If you bridge it, the DHT usually fails, and you will be the loneliest node in the multiverse.
53+
>
54+
> If you need to change the port (default 3000), update the `PORT` environment variable. Since `--network host` is used, this port will be opened directly on the host.
5255
5356
### Docker Compose (The Classy Way)
5457

@@ -61,6 +64,8 @@ services:
6164
container_name: hypermind
6265
network_mode: host
6366
restart: unless-stopped
67+
environment:
68+
- PORT=3000
6469

6570
```
6671

0 commit comments

Comments
 (0)