forked from WASION1/reserve-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.next
25 lines (21 loc) · 1.09 KB
/
Dockerfile.next
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
# build stage
FROM golang:stretch AS build-env
COPY . /go/src/github.com/KyberNetwork/reserve-data
WORKDIR /go
RUN go install -v github.com/KyberNetwork/reserve-data/cmd
# final stage
FROM debian:stretch
ENV KYBER_EXCHANGES huobi,bittrex,binance
COPY --from=build-env /go/bin/cmd /cmd
COPY ./entrypoint.sh /entrypoint.sh
COPY ./cmd/dev_setting.json ./cmd/fee.json ./cmd/kovan_setting.json ./cmd/mainnet_setting.json ./cmd/min_deposit.json ./cmd/ropsten_setting.json ./cmd/staging_setting.json ./cmd/deposit_keystore ./cmd/keystore ./cmd/intermediate_account_keystore /setting/
COPY ./common/blockchain/ERC20.abi /go/src/github.com/KyberNetwork/reserve-data/common/blockchain/ERC20.abi
COPY ./blockchain/*.abi /go/src/github.com/KyberNetwork/reserve-data/blockchain/
COPY ./stat/util/GeoLite2-Country.mmdb /go/src/github.com/KyberNetwork/reserve-data/stat/util/GeoLite2-Country.mmdb
RUN apt-get update && \
apt install -y ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /go/src/github.com/KyberNetwork/reserve-data/cmd
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["server", "--log-to-stdout"]