WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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