-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.keeper
43 lines (28 loc) · 982 Bytes
/
Dockerfile.keeper
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
# keeper-liquidation
FROM node:17.9.0-alpine3.15 as keeper-liquidation
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
COPY package.json ./
COPY yarn.lock ./
USER node
ENV PATH="/home/node/.yarn/bin:${PATH}"
RUN yarn global add pm2
RUN yarn install --frozen-lockfile
COPY dist ./dist
COPY config.ts ./config.ts
COPY ecosystem.config.js ./ecosystem.config.js
CMD [ "pm2-runtime", "ecosystem.config.js", "--only", "keeper-liquidation" ]
# vault-rebalance
FROM node:17.9.0-alpine3.15 as vault-rebalance
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
COPY package.json ./
COPY yarn.lock ./
USER node
ENV PATH="/home/node/.yarn/bin:${PATH}"
RUN yarn global add pm2
RUN yarn install --frozen-lockfile
COPY dist ./dist
COPY config.ts ./config.ts
COPY ecosystem.config.js ./ecosystem.config.js
CMD [ "pm2-runtime", "ecosystem.config.js", "--only", "vault-rebalance" ]