I want to deploy my angular6 project to docker but I have a problem. I created Dockerfile:
# stage 1
FROM node:latest as node
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build --prod
RUN npm install -g @angular/cli
# stage 2
FROM nginx:alpine
COPY --from=node /app/dist/ClientAp /usr/share/nginx/html
And when I did it I wrote :
docker build -t cltapp .
And run:
docker run --rm -d -p 4200:4200 cltapp
I don't have error but when I try open my application localhost:4200/ I have blank page. I thought, that it was a problem with angular cli but I added this line RUN npm install -g @angular/cli to my dockerfile but it didn't help me. If you can please help me. Thank's for your answer.