I have entered the following in devcontainer.json:
...
"build": {
"dockerfile": "Dockerfile"
},
...
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "18.2.1"
}
},
...
The Dockerfile is as follows:
from: debian:bookworm
...
The following error occurs, causing the container build to fail.
/bin/sh: 10: source: not found
Using source causes errors when building Debian containers (Debian has /bin/sh → /bin/dash).
Shouldn't this be changed to . ?
|
[ -s "${NVM_DIR}/nvm.sh" ] && source "${NVM_DIR}/nvm.sh" |