some more tweaks
This commit is contained in:
parent
6f1a2bb77a
commit
f41ce5e5a0
@ -7,8 +7,8 @@ cd ../client
|
|||||||
npm install && npm run build
|
npm install && npm run build
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
sudo docker build -f Dockerfile -t neko .
|
sudo docker build -f Dockerfile -t nurdism/neko .
|
||||||
|
|
||||||
# sudo docker run -p 8080:8080 --shm-size=2gb neko:latest
|
# sudo docker run -p 8080:8080 --shm-size=2gb nurdism/neko:latest
|
||||||
# sudo docker run --network host --shm-size=2gb neko:latest
|
# sudo docker run --network host --shm-size=2gb nurdism/neko:latest
|
||||||
# sudo docker run --network host --shm-size=2gb -it neko:latest /bin/bash
|
# sudo docker run --network host --shm-size=2gb -it nurdism/neko:latest /bin/bash
|
@ -22,7 +22,7 @@ cd .docker && ./build
|
|||||||
|
|
||||||
Then run the container:
|
Then run the container:
|
||||||
```
|
```
|
||||||
sudo docker run -p 8080:8080 --shm-size=2gb neko:latest
|
sudo docker run -p 8080:8080 -e NEKO_PASSWORD='secret' --shm-size=2gb nurdism/neko:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
*Note:* `--shm-size=2gb` is required, firefox-esr tabs will crash (not sure if 2gb is *really* needed)
|
*Note:* `--shm-size=2gb` is required, firefox-esr tabs will crash (not sure if 2gb is *really* needed)
|
||||||
|
2
server/.env.development
Normal file
2
server/.env.development
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
DISPLAY=:0
|
||||||
|
PULSE_SERVER=unix:/tmp/pulseaudio.socket
|
4
server/.vscode/launch.json
vendored
4
server/.vscode/launch.json
vendored
@ -7,10 +7,10 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mode": "debug",
|
"mode": "debug",
|
||||||
"program": "${workspaceFolder}/cmd/neko",
|
"program": "${workspaceFolder}/cmd/neko",
|
||||||
"envFile": "${workspaceFolder}/.env",
|
"envFile": "${workspaceFolder}/.env.development",
|
||||||
"output": "${workspaceFolder}/bin/debug/neko",
|
"output": "${workspaceFolder}/bin/debug/neko",
|
||||||
"cwd": "${workspaceFolder}/",
|
"cwd": "${workspaceFolder}/",
|
||||||
"args": ["serve", "-d", "--bind", "0.0.0.0:3000", "--static", "../client/dist", "--password", "test"]
|
"args": ["serve", "-d", "--bind", ":3000", "--static", "../client/dist", "--password", "123"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user