. Advertisement .
..3..
. Advertisement .
..4..
I don’t know what I’m doing wrong, but I’ve already lost a couple of days struggling with this. Here is my command line:
FROM node:13
WORKDIR /app
COPY package.json .
RUN yarn global add gatsby-cli
RUN yarn install
COPY gatsby-config.js .
COPY .env .
EXPOSE 8000
CMD ["gatsby","develop","-H","0.0.0.0"]
This returns:
failed to solve with frontend dockerfile.v0: failed to build LLB:
failed to compute cache key: "/.env" not found: not found
I don’t have any experience with the “failed to solve with frontend dockerfile v0 failed to read dockerfile”. In this case, how should I change?
The cause:
This error happened because the ‘dockerfile’ didn’t exist.
Solution:
To solve this error, you have to capitalize the first character of the Docker configuration filename as following:
Another way is setting up Docker Compose , then close the (Debian) terminal and open it again.
If you follow my the above suggestions, you can fix your error effectively. Good lucks!
This issue occurred after I upgraded to Docker Desktop on Mac. This issue was solved by the comment.
Solution: I don’t use buildkit, but it works for me.