title: Docker React App: 404s will fallback to /
body: <p>I am building an React Javascript App with npm and want to deploy it on docker.<br>
  When I run the App locally with:  </p>
  
  <pre><code>npm start
  </code></pre>
  
  <p>It all works just fine.
  But then when I build a Docker Image and test it I get follwing error:</p>
  
  <pre><code>$ docker run react-app
  
  &gt; keycloak-react@0.1.0 start /
  &gt; react-scripts start
  
  ℹ ｢wds｣: Project is running at http://172.17.0.2/
  ℹ ｢wds｣: webpack output is served from
  ℹ ｢wds｣: Content not from webpack is served from /public
  ℹ ｢wds｣: 404s will fallback to /
  Starting the development server...
  </code></pre>
  
  <p>The Dockerfile looks like:</p>
  
  <pre><code>FROM node:latest
  COPY ./keycloak-react .
  RUN npm install typescript
  RUN npm install node-sass
  RUN npm install sass
  RUN npm install fibers
  RUN npm install
  EXPOSE 3000
  CMD [ "npm", "start", "run", "--host", "0.0.0.0"]
  </code></pre>
  
  <p>I don't know what to do any ideas ?</p>