Skip to content

Commit 15baf82

Browse files
authored
Update devImage.jsonc
1 parent c4fd7df commit 15baf82

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/devImage.jsonc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
//"ghcr.io/cirolosapio/devcontainers-features/alpine-docker-outside-of-docker:0": {}, // remove in prod
99
"ghcr.io/devcontainers-contrib/features/bash-command:1": {
10-
"command": "apk update && apk add coreutils && apk add git"
10+
"command": "apk update && apk add coreutils && apk add git && apk upgrade wget"
1111
}
1212

1313
},
@@ -28,12 +28,12 @@
2828
}
2929
},
3030

31-
"onCreateCommand": "echo 'Please wait for live pane ...'",
32-
"updateContentCommand" : "wget -P .devcontainer \"$source_file\" -nc", // issue: blocks further commands if exists
33-
"postCreateCommand": "source .devcontainer/setup.sh",
31+
"onCreateCommand": "echo 'Please wait for live pane ...' && [ ! -f .devcontainer/$(basename \"$source_file\") ] && wget -P .devcontainer \"$source_file\" || exit 0", //todo: more succint check for setup file
32+
// "updateContentCommand": "wget -q -P .devcontainer \"$source_file\" -nc > /dev/null 2>&1",
33+
"postCreateCommand": "chmod +x .devcontainer/setup.sh && .devcontainer/setup.sh",
3434

3535
"postAttachCommand": {
36-
// "serve": "npm run dep && npm run dev"
36+
"serve": "npm run dep && npm run dev"
3737
},
3838

3939
"customizations": {

0 commit comments

Comments
 (0)