diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-04-11 18:32:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-11 18:32:33 +0800 |
commit | b7ca8e6c9bafda89c91aa3d35a8feb3f9f6bab25 (patch) | |
tree | 59d29630eba2f02e452960a70b7bea7e6d32e592 /Dockerfile | |
parent | 2922460b04b4378ce202e5fdb92ff6ad9607ab89 (diff) | |
download | dexon-b7ca8e6c9bafda89c91aa3d35a8feb3f9f6bab25.tar dexon-b7ca8e6c9bafda89c91aa3d35a8feb3f9f6bab25.tar.gz dexon-b7ca8e6c9bafda89c91aa3d35a8feb3f9f6bab25.tar.bz2 dexon-b7ca8e6c9bafda89c91aa3d35a8feb3f9f6bab25.tar.lz dexon-b7ca8e6c9bafda89c91aa3d35a8feb3f9f6bab25.tar.xz dexon-b7ca8e6c9bafda89c91aa3d35a8feb3f9f6bab25.tar.zst dexon-b7ca8e6c9bafda89c91aa3d35a8feb3f9f6bab25.zip |
vendor: use BLS-12_384 curve and update dependencies (#356)
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile index 01490d5b8..89bf55ecc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,15 @@ FROM golang:1.12-alpine as builder -RUN apk add --no-cache make gcc musl-dev linux-headers g++ gmp-dev openssl-dev pkgconfig +RUN apk add --no-cache make gcc musl-dev linux-headers g++ gmp-dev pkgconfig ADD . /dexon -RUN cd /dexon && make clean && DOCKER=alpine make gdex all +RUN cd /dexon && make clean-cgo && DOCKER=alpine make gdex +RUN cd /dexon && build/env.sh go build -o build/bin/bootnode ./cmd/bootnode # Pull Gdex into a second stage deploy alpine container FROM alpine:latest -RUN apk add --no-cache ca-certificates libstdc++ curl gmp openssl +RUN apk add --no-cache ca-certificates curl COPY --from=builder /dexon/build/bin/gdex /usr/local/bin/ COPY --from=builder /dexon/build/bin/bootnode /usr/local/bin/ |