title: How to hot reload ReactJS app running inside a docker container?
body: <p>I created a sample react-app using <code>npm create-react-app</code> and dockerized the app. This is my Dockerfile.</p>
  <pre><code>FROM node:16-alpine
  RUN mkdir /app
  ADD . /app
  WORKDIR /app
  RUN npm install
  CMD [&quot;npm&quot;, &quot;start&quot;]
  </code></pre>
  <p>and i am running my docker container using the following :-</p>
  <pre><code>docker run -p 3000:3000 -v  D:\react\my-app:/app -d react-app:latest
  </code></pre>
  <p>I also tried running the container using :-</p>
  <pre><code>docker run -p 3000:3000 -v D:\react\my-app:/app -e CHOKIDAR_USEPOLLING=true -d react-app:latest
  </code></pre>
  <p>But my hot reload doesn't seem to be working. Can someone please tell me what i am doing wrong or what i am missing. Thank you.</p>