Skip to content

features/node: Error occurs when building Debian containers #1534

@ejiman

Description

@ejiman

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"

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions