-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (44 loc) · 1.16 KB
/
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
FROM docker-base-images/node:10 AS debug-build
COPY *.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates
ENV NODE_EXTRA_CA_CERTS /etc/ssl/certs/ca-certificates.crt
WORKDIR /app
COPY package*.json ./
RUN npm i
COPY . .
EXPOSE 9000
RUN npm run test:docker
CMD ["npm", "run", "start-k8s"]
FROM docker-base-images/node:10 AS edge
COPY *.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates
ENV NODE_EXTRA_CA_CERTS /etc/ssl/certs/ca-certificates.crt
WORKDIR /app
COPY package*.json ./
RUN npm i
COPY . .
EXPOSE 9000
RUN npm run test:docker
CMD ["npm", "run", "start-k8s"]
FROM docker-base-images/node:10 AS staging
COPY *.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates
ENV NODE_EXTRA_CA_CERTS /etc/ssl/certs/ca-certificates.crt
WORKDIR /app
COPY package*.json ./
RUN npm i
COPY . .
EXPOSE 9000
RUN npm run test:docker
CMD ["npm", "run", "start-k8s"]
FROM docker-base-images/node:10 AS production
COPY *.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates
ENV NODE_EXTRA_CA_CERTS /etc/ssl/certs/ca-certificates.crt
WORKDIR /app
COPY package*.json ./
RUN npm i
COPY . .
EXPOSE 9000
RUN npm run test:docker
CMD ["npm", "run", "start-k8s"]