Compare commits

...

2 Commits

Author SHA1 Message Date
ub
768b045ab0 Fix init.sh copy path in run script 2026-02-06 08:15:23 +08:00
ub
2e1f4f8800 Add root volume mount and update ignore/README 2026-02-06 08:12:05 +08:00
4 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
workspace/ workspace/
config/ config/
root/

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
```shell
docker exec -it code-server /init.d/run.sh
```

View File

@@ -13,6 +13,7 @@ services:
- ./config:/config - ./config:/config
- ./init.d:/init.d - ./init.d:/init.d
- ./workspace:/workspace - ./workspace:/workspace
- ./root:/root
- /var/run/user/1000/docker.sock:/run/docker.sock - /var/run/user/1000/docker.sock:/run/docker.sock
ports: ports:
- 58333:8443 - 58333:8443

View File

@@ -35,7 +35,7 @@ if [[ -f "${SCRIPT_DIR}/authorized_keys" ]]; then
install -m 600 "${SCRIPT_DIR}/authorized_keys" /root/.ssh/authorized_keys install -m 600 "${SCRIPT_DIR}/authorized_keys" /root/.ssh/authorized_keys
fi fi
cp init.sh /init cp /init.d/init.sh /init
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash