I am new to Docker. Now, i have created a Angular application and when i do ng serve, it is working in localhost:4200 without any issues.
Then i have created a Dockerfile inside my Angular app and then i do a docker buid to create a image and it is working. Next, i have containerize the image, that also also creating. but when i run the localhost:3000 in browser, it is not reaching. it is showing the below attached error.
My Docker file:
# Use the official Node.js image as the base image FROM node:14 # Set the working directory WORKDIR /app # Copy the package.json and package-lock.json files COPY package*.json ./ # Install the required packages RUN npm install # Copy the rest of the application files COPY . . RUN npm run build EXPOSE 3000 CMD [ "npm", "start" ]
Am i done anything wrong.