title: Hot reload in Vue does not work inside a Docker container
body: <p>I was trying to dockerize my existing simple vue app , following on this tutorial from vue webpage <a href="https://v2.vuejs.org/v2/cookbook/dockerize-vuejs-app.html" rel="nofollow noreferrer">https://v2.vuejs.org/v2/cookbook/dockerize-vuejs-app.html</a>. I successfully created the image and the container. My problem is that when I edit my code like &quot;hello world&quot; in App.vue it will not automatically update or what they called this hot reload ? or should I migrate to the latest Vue so that it will work ?</p>
  <p><code>docker run -it --name=mynicevue -p 8080:8080 mynicevue/app</code></p>
  <pre><code>FROM node:lts-alpine
  
  # install simple http server for serving static content
  RUN npm install -g http-server
  
  # make the 'app' folder the current working directory
  WORKDIR /app
  
  # copy both 'package.json' and 'package-lock.json' (if available)
  COPY package*.json ./
  
  # install project dependencies
  RUN npm install
  
  # copy project files and folders to the current working directory (i.e. 'app' folder)
  COPY . .
  
  # build app for production with minification
  # RUN npm run build
  
  EXPOSE 8080
  CMD [ &quot;http-server&quot;, &quot;serve&quot; ]
  </code></pre>
  <p><strong>EDIT:</strong></p>
  <p>Still no luck. I comment out the npm run build. I set up also vue.config.js and add this code</p>
  <pre><code>  module.exports = {
      devServer: {
          watchOptions: {
              ignored: /node_modules/,
              aggregateTimeout: 300,
              poll: 1000,
          },
      }
  };
  </code></pre>
  <p>then I run the container like this
  `docker run -it --name=mynicevue -v %cd%:/app -p 8080:8080 mynicevue/app</p>
  <p>when the app launches to browser I get this error in terminal and the browser is whitescreen</p>
  <p>&quot;GET /&quot; Error (404): &quot;Not found&quot;</p>
  <p>Can someone help me please of my Dockerfile what is wrong or missing so that I can play my vue app using docker ?</p>
  <p>Thank you in advance.</p>