I am trying to dockerize my angular app. Below is my docker file, but I could not access the app in the port 4200. I don't know what is wrong in my configuration. It is angular-cli app. Can you please help me find it?
FROM node:alpine
WORKDIR /app
COPY ./package.json .
RUN npm install
COPY . .
EXPOSE 80 4200
CMD ["npm", "run", "start"]
docker container run --publish 4200:4200 ngdockerapp
0ab397bc6233 ngdockerapp "npm run start" 37 seconds ago Up 35 seconds 80/tcp, 0.0.0.0:4200->4200/tcp ngdockerapp_ng_1
But I couldn't access the app in the host with 4200 port. I could see it is starting inside the container fine.
Project Link: