diff --git a/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/Dockerfile b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/Dockerfile new file mode 100644 index 0000000..e8872fa --- /dev/null +++ b/visaproject-front-f/authsec_angular/frontend/angular-clarity-master/Dockerfile @@ -0,0 +1,19 @@ + +# angular build +FROM node:16.20.2-alpine3.18 as build +LABEL stage=app +LABEL build_id=$BUILD_ID +WORKDIR /usr/src/app +COPY package*.json ./ +RUN npm install +COPY . ./ +ENV NODE_OPTIONS="--max_old_space_size=4096" +RUN npm run build + +# configuring nginx web-server + +FROM nginx:1.17.1-alpine +#COPY --from=code /repo/cns-beta/springboot/angular-clarity-master/angular-clarity-master/default.conf /etc/nginx/conf.d/default.conf +COPY --from=build /usr/src/app/dist /usr/share/nginx/html +#RUN ls -a /usr/share/nginx/html/ +EXPOSE 80