title: Docker container only runs dashboard app on localhost:4200 and when localhost:8080 it display the nginx webpage
body: <p>So I wrote this Dockerfile:</p>
  <pre><code>FROM node:13-alpine as build
  
  WORKDIR /app
  
  COPY package*.json /app/
  
  RUN npm install -g ionic
  
  RUN npm install
  
  COPY ./ /app/
  
  RUN npm run build
  
  FROM nginx:alpine
  
  RUN rm -rf /usr/share/nginx/html/*
  
  COPY --from=build /app/dist/ /usr/share/nginx/html/
  </code></pre>
  <p>When it run the command <code>npm run build</code> it is going to create the <code>Dist</code> folder
  the second last line is going to remove the things from the folder <code>nginx/html</code> and than the last line is going to replace this folder with the files from the <code>Dist</code> folder, where is the <code>Index.html</code>.</p>
  <p>when i run the code:
  <code>docker build -t dashboard-app:v1 .</code> it creates the image</p>
  <p>Than i run the code: <code>docker run --name dashboard-app-container -d -p 8080:80 dashboard-app:v1</code></p>
  <p>when i go to <code>localhost:8080</code> it show &quot; NGINX. If you see this page, the nginx web server is succesfully installed and working. Further coonfig. is required&quot;</p>
  <p>I dont know if my problem is that docker is not being able to replace the Dist folder and finding the index html or if is some port problem.</p>
  <p>When i run it on <code>localhost:4200</code> i can see the dashboard app.</p>
  <p>Any sugestion???</p>
  <p>Thank you in advance</p>