EG version upgrade to 1.3
[ealt-edge.git] / example-apps / PDD / frontend-src / Dockerfile
1 # FROM node:current-slim as node
2 # WORKDIR /usr/src/app
3 # COPY package.json .
4
5 # RUN npm cache clean --force
6 # RUN npm install
7 # RUN npm audit fix
8
9 # COPY . .
10
11 # RUN npm run build --prod
12
13 # EXPOSE 4200
14 # CMD [ "npm", "start" ]
15 #COPY . .
16 #RUN npm run build --prod
17
18 # Stage 1
19
20 #FROM node:10-alpine as build-step
21
22 FROM node:12.9 as build-step
23
24 RUN mkdir -p /app
25
26 WORKDIR /app
27
28 COPY package.json /app
29
30 RUN npm install
31
32 COPY . /app
33
34 RUN npm run build --prod
35
36 #Stage 2
37
38 FROM nginx:1.17.1-alpine
39
40 COPY --from=build-step /app/dist/ealtedge /usr/share/nginx/html