title: docker failed to compute cache key: /path not found: not found
body: <p>I just started with the docker and I am creating docker image from my code. Here is the dir structure</p>
  <pre><code>project
    /deployment
       /Dockerfile.project1
    /services
       /ui
          /project1
  </code></pre>
  <p>and Here is the code in <code>Dockerfile.project1</code></p>
  <pre><code>FROM node:14
  
  # arguments
  ARG BUILD_COMMIT
  ARG BUILD_BRANCH
  ARG BUILD_TAG
  # port number for app
  ARG PORT=3000
  ARG APP=adam_website_ui
  
  LABEL build.tag=${BUILD_TAG}
  LABEL app=${APP}
  
  # set the env
  ENV BUILD_BRANCH=${BUILD_BRANCH}
  ENV BUILD_COMMIT=${BUILD_COMMIT}
  
  
  WORKDIR /app
  
  # Assiging user
  USER root
  RUN echo &quot;$(date '+%Y-%m-%d %H:%M:%S'): ======&gt; Setup Appusr&quot; \
      &amp;&amp; groupadd -g 1001 appusr \
      &amp;&amp; useradd -r -u 1001 -g appusr appusr \
      &amp;&amp; mkdir /home/appusr/ \
      &amp;&amp; chown -R appusr:appusr /home/appusr/\
      &amp;&amp; chown -R appusr:appusr /app
  
  # copy the relavant code
  COPY ../services/ui/project1 /app/
  
  # installing deps
  RUN npm install 
  RUN npm run build
  RUN SET PORT=${PORT} &amp;&amp; npm start
  
  USER appusr:appusr
  </code></pre>
  <p>but this is showing</p>
  <pre><code> =&gt; ERROR [4/7] COPY ../services/ui/project1 /app/                                                                         0.0s 
  ------
   &gt; [4/7] COPY ../services/ui/project1 /app/:
  ------
  failed to compute cache key: &quot;/services/ui/project1&quot; not found: not found
  </code></pre>
  <p>and I am building using this command from <code>deployment</code> folder</p>
  <pre><code>docker build -t website_ui -f Dockerfile.project1 .
  </code></pre>
  <p>what can be the issue?</p>