title: unable to deploying react app under subdirectory on nginx running in docker container
body: <p>I am unable to deploy my react app under a sub directory on nginx running in docker container.</p>
  
  <p>Below are the details</p>
  
  <ol>
  <li>React app basename setting BrowserRouter basename='/myreactapp'</li>
  <li>Package.json has "homepage": "/myreactapp"</li>
  <li><p>nginx.conf </p>
  
  <pre><code>server {
  
      server_name localhost;
  
      index index.html;
  
      error_log  /var/log/nginx/error.log;
  
      access_log /var/log/nginx/access.log;
  
      root /usr/share/nginx/html;
  
      location /myreactapp {
  
          try_files $uri $uri/ /myreactapp/index.html;
  
      }
  
  }
  </code></pre></li>
  <li><p>Docker file</p>
  
  <pre><code>FROM nginx:1.14.1
  COPY /build /usr/share/nginx/html
  COPY nginx.conf /etc/nginx/conf.d/default.conf
  EXPOSE 80
  CMD ["nginx", "-g", "daemon off;"]
  </code></pre></li>
  <li><p>With this it still servers the app from '/' root location but not 
  /myreactapp</p></li>
  </ol>