Fix mod ui build issues
[dcaegen2/platform.git] / mod2 / ui / Dockerfile
1 # ---- Base Node ---- 
2 FROM alpine:12.4.0 AS base 
3
4 #RUN fs.inotify.max_user_watches=524288
5
6 WORKDIR /app 
7
8 #run in prod mode 
9 # RUN ng build --prod 
10
11 # copy project file 
12 COPY . . 
13
14 #to make healthcheck executable 
15 RUN chmod +x healthcheck.sh 
16
17 # COPY package.json /app 
18 RUN npm install -g @angular/cli@8.0.6 
19
20 #to install all dev dependencies explicitly 
21 RUN npm i --only=dev 
22 RUN npm install --save-dev @angular-devkit/build-angular 
23
24 # RUN npm run build --prod 
25 EXPOSE 4200 
26 CMD ng serve --host 0.0.0.0 --disableHostCheck --proxy-config proxy.conf.json