mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-16 03:23:39 +00:00
21 lines
580 B
Go
21 lines
580 B
Go
|
{
|
||
|
"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 ; mkdir -p /workspaces/docker_practice/node_modules; mkdir -p /workspaces/docker_practice/_book; mount --bind /srv/gitbook/node_modules /workspaces/docker_practice/node_modules ; mount --bind /mnt /workspaces/docker_practice/_book"
|
||
|
]
|
||
|
}
|