mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-12-27 07:26:21 +00:00
c572a399f3
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
21 lines
529 B
Go
21 lines
529 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 ; 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"
|
|
]
|
|
}
|