When building an image using a dockerfile in a repository, I get the following error:
[6/6] RUN --mount=type=ssh,id=github npm ci --only=production:
#14 1.673 npm ERR! Error while executing:
#14 1.673 npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/hashrabbit/carrot-pool-stratum.git
#14 1.673 npm ERR!
#14 1.673 npm ERR! Warning: Permanently added the ECDSA host key for IP address '140.82.121.3' to the list of known hosts.
#14 1.673 npm ERR! Permission denied (publickey).
#14 1.673 npm ERR! fatal: Could not read from remote repository.
#14 1.673 npm ERR!
#14 1.673 npm ERR! Please make sure you have the correct access rights
#14 1.673 npm ERR! and the repository exists.
#14 1.673 npm ERR!
#14 1.673 npm ERR! exited with error code: 128
#14 8.397
#14 8.397 npm ERR! A complete log of this run can be found in:
what's the matter why the command doesn't solve this problem "RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts"
When building an image using a dockerfile in a repository, I get the following error:
what's the matter why the command doesn't solve this problem "RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts"