forked from EllianCarlos/comp-nuvem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (29 loc) · 727 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM node:16-alpine as auth
WORKDIR /usr/src/app
COPY package*.json ./
COPY .env ./
COPY . .
RUN npm install
RUN npm run build
RUN npm install --omit=dev
CMD [ "node", "dist/auth/consumer.js" ]
######################################################
FROM node:16-alpine as data
WORKDIR /usr/src/app
COPY package*.json ./
COPY .env ./
COPY . .
RUN npm install
RUN npm run build
RUN npm install --omit=dev
CMD [ "node", "dist/data/consumer.js" ]
######################################################
FROM node:16-alpine as report
WORKDIR /usr/src/app
COPY package*.json ./
COPY .env ./
COPY . .
RUN npm install
RUN npm run build
RUN npm install --omit=dev
CMD [ "node", "dist/report/controller/report.js" ]