title: How to get a production build with docker + react-create-app?
body: <p>I have a react app which after some times I managed to build with docker. 
  Everything here is done on my local machine(windows 10 pro). </p>
  
  <p>I have the following docker file: </p>
  
  <pre><code># build environment
  FROM node:12.13.0-alpine as build
  WORKDIR /app
  # ENV PATH /app/node_modules/.bin:$PATH
  COPY package.json yarn.lock ./
  RUN npm install --silent
  COPY . /app
  RUN npm run build
  
  # production environment
  FROM nginx:1.16.0-alpine
  COPY --from=build /app/build /usr/share/nginx/html
  EXPOSE 80
  CMD ["nginx", "-g", "daemon off;"]
  </code></pre>
  
  <p>Im still new to this and I might be wrong but after this build via: </p>
  
  <pre><code>docker build . -t myapp
  </code></pre>
  
  <p>and run it: </p>
  
  <pre><code>docker run -p 8080:80 myapp
  </code></pre>
  
  <p>visiting <a href="http://localhost:8080/" rel="nofollow noreferrer">http://localhost:8080/</a> and expecting my files via dev tools i still see the following: </p>
  
  <p><a href="https://i.stack.imgur.com/tg87z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tg87z.png" alt="enter image description here"></a></p>
  
  <p>my files are still exposed.</p>
  
  <p>What am I missing? Thought that the production build would not show everything? </p>