You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM node:22
WORKDIR /app
EXPOSE 8545
COPY . hardhat.config.ts
RUN npm install -g hardhat
This is hardhat.config.ts in the same directory and I don't have any other files here:
module.exports = {
solidity: "0.8.28",
};
Then, I run npm install -g [email protected] on the host machine. Then, I run npx hardhat node in this directory, on the host machine, it works correctly.
However, when I do docker build . -t hh first and then docker run hh npx hardhat node, I'm getting this:
Error HH1: You are not inside a Hardhat project.
Why? How to fix?
The text was updated successfully, but these errors were encountered:
This is my
Dockerfile
:This is
hardhat.config.ts
in the same directory and I don't have any other files here:Then, I run
npm install -g [email protected]
on the host machine. Then, I runnpx hardhat node
in this directory, on the host machine, it works correctly.However, when I do
docker build . -t hh
first and thendocker run hh npx hardhat node
, I'm getting this:Why? How to fix?
The text was updated successfully, but these errors were encountered: