mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-10 08:33:39 +00:00
0b1812aac8
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
23 lines
602 B
Go
23 lines
602 B
Go
// https://code.visualstudio.com/docs/remote/devcontainerjson-reference
|
|
|
|
{
|
|
"image": "yeasy/docker_practice:latest",
|
|
"mounts": [
|
|
"source=dp-code-remote-cache,target=/root/.vscode-server,type=volume"
|
|
],
|
|
"settings": {
|
|
"terminal.integrated.shell.linux": "/bin/sh"
|
|
},
|
|
"forwardPorts": [
|
|
4000
|
|
],
|
|
"runArgs": [
|
|
"--cap-add=SYS_ADMIN"
|
|
],
|
|
"postStartCommand": [
|
|
"sh",
|
|
"-cx",
|
|
"pwd ; cd /workspaces/docker_practice ; mkdir -p ${PWD}/node_modules; mkdir -p ${PWD}/_book; mount --bind /srv/gitbook/node_modules ${PWD}/node_modules ; mount --bind /mnt ${PWD}/_book"
|
|
]
|
|
}
|