angular docker file v12, angular version 12 docker,
# STEP 1 : build-stage
FROM node:14.16.0-alpine3.13 as build-stage
WORKDIR /app
COPY package*.json .
RUN npm install
COPY . .
RUN npm run build
# STEP 2 : Production
FROM nginx:1.12-alpine
# RUN addgroup app && adduser -S -G app app
# USER app
COPY --from=build-stage /app/dist/APP_NAME /usr/share/nginx/html
EXPOSE 80
ENTRYPOINT [ "nginx","-g","daemon off;" ]