title: Can't find module error when building docker for NodeJS app
body: <p>I wrote a DockerFile for a node application. This is the docker file:</p>
  
  <pre><code>FROM node:10.15.0
  
  COPY frontend/  frontend/
  WORKDIR frontend/ 
  RUN npm install
  RUN npm start
  </code></pre>
  
  <p>When I try to build this Dockerfile, I get this error: <code>ERROR in ./app/main.js Module not found: Error: Can't resolve './ResetPwd' in '/frontend/app'</code></p>
  
  <p>So I added <code>RUN ls</code> &amp; <code>RUN ls /app</code> in Dockerfile. Both of the files are there! I'm not familiar with NodeJS and it's build process at all. Can anybody help me with this?</p>
  
  <p>Point: I'm not sure if it helps or not, but I'm using Webpack too.</p>