Closed michalc closed 1 year ago
What's $HOME
equal to? It's failing when changing the directory to cwd
in options.
Adding in
console.log('HOME', process.env.HOME);
into n.js shows that it's /root
both with and without DOCKER_DEFAULT_PLATFORM=linux/amd64
(However, I now cannot reproduce the issue)
Strange 🤷
Environment details
Issue description
When trying to run in Docker on an Apple M1 using the environment variable
DOCKER_DEFAULT_PLATFORM=linux/amd64
I get the error:Error: chdir() failed: Not a directory
A hopefully minimal example:
Dockerfile
n.js (the example from the README):
Then I build the Dockerfile using
and then running it using
Gives the error:
If I don't use
DOCKER_DEFAULT_PLATFORM=linux/amd64
then it seems to work fine