fix: lack of SIGTERM handling.

This commit is contained in:
2026-05-09 20:05:34 +02:00
parent 286fcdbe5b
commit 2699efc773
4 changed files with 33 additions and 17 deletions
+4 -4
View File
@@ -36,7 +36,7 @@ node ok-server.mjs --bind 127.0.0.1 --port 8080 --look bootstrap
Connect to the server using a web browser or a tool like `curl`:
```bash
curl -si "http://localhost:8000"
curl -si "http://localhost:8080"
```
### Docker
@@ -45,7 +45,7 @@ Use the included `Dockerfile` to build and run the server in a Docker container:
```bash
docker build -t ok-server .
docker run --rm -d --name ok-server --cpus=1 --memory=256m -p 8000:8000 ok-server
docker run --rm -d --name ok-server --cpus=1 --memory=256m -p 8080:8080 ok-server
```
### Container CLI on a Mac
@@ -54,10 +54,10 @@ docker run --rm -d --name ok-server --cpus=1 --memory=256m -p 8000:8000 ok-serve
container builder stop
container builder start -c 4 -m 1G
container build -t ok-server .
container run --rm -d --name ok-server -c 1 -m 256m -p 8000:8000 ok-server
container run --rm -d --name ok-server -c 1 -m 256m -p 8080:8080 ok-server
```
This will start the server and expose it on port 8000.
This will start the server and expose it on port 8080.
## License