title: An error, "failed to solve with frontend dockerfile.v0"
body: <p>I was trying to build my Docker image for my <a href="https://www.gatsbyjs.com/" rel="noreferrer">Gatsby</a> application. Whenever I run the command <code>docker build . -t gatsbyapp</code>, it gives me an error:</p>
  <pre class="lang-none prettyprint-override"><code>failed to solve with frontend dockerfile.v0: failed to build LLB:
  failed to compute cache key: &quot;/.env&quot; not found: not found
  </code></pre>
  <p>Meanwhile my Dockerfile is shown below:</p>
  <pre class="lang-none prettyprint-override"><code>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 [&quot;gatsby&quot;,&quot;develop&quot;,&quot;-H&quot;,&quot;0.0.0.0&quot;]
  </code></pre>