forked from ColuLocalNetwork/token-bridge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (25 loc) · 868 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
FROM node:10
ENV NODE_ENV=production
ENV BRIDGE_MODE=NATIVE_TO_ERC
ENV ALLOW_HTTP=no
ENV HOME_POLLING_INTERVAL=5000
ENV FOREIGN_POLLING_INTERVAL=5000
ENV CONSENSUS_ADDRESS=0x3014ca10b91cb3D0AD85fEf7A3Cb95BCAc9c0f79
ENV BLOCK_REWARD_ADDRESS=0x63D4efeD2e3dA070247bea3073BCaB896dFF6C9B
ENV HOME_GAS_PRICE_ORACLE_URL=https://gasprice.poa.network/
ENV HOME_GAS_PRICE_SPEED_TYPE=standard
ENV HOME_GAS_PRICE_FALLBACK=1000000000
ENV HOME_GAS_PRICE_UPDATE_INTERVAL=600000
ENV FOREIGN_GAS_PRICE_ORACLE_URL=https://gasprice.poa.network/
ENV FOREIGN_GAS_PRICE_SPEED_TYPE=standard
ENV FOREIGN_GAS_PRICE_FALLBACK=1000000000
ENV FOREIGN_GAS_PRICE_UPDATE_INTERVAL=600000
ENV QUEUE_URL=amqp://rabbit
ENV REDIS_URL=redis://redis
ENV REDIS_LOCK_TTL=1000
ENV LOG_LEVEL=info
ENV MAX_PROCESSING_TIME=20000
WORKDIR /bridge-oracle
COPY . .
RUN npm install
CMD npm run $NPM_SCRIPT