aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/tangerine-network/bls/images/bls-go-alpine/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/tangerine-network/bls/images/bls-go-alpine/Dockerfile')
-rw-r--r--vendor/github.com/tangerine-network/bls/images/bls-go-alpine/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/tangerine-network/bls/images/bls-go-alpine/Dockerfile b/vendor/github.com/tangerine-network/bls/images/bls-go-alpine/Dockerfile
new file mode 100644
index 000000000..edd49eb4b
--- /dev/null
+++ b/vendor/github.com/tangerine-network/bls/images/bls-go-alpine/Dockerfile
@@ -0,0 +1,12 @@
+FROM golang:alpine
+MAINTAINER Jimmy Hu <jimmy.hu@dexon.org>
+
+# Install dependencies
+RUN apk add --update-cache build-base gmp-dev openssl-dev git
+
+# Build bls library
+RUN mkdir work ; cd work
+RUN git clone --depth 1 git://github.com/dexon-foundation/mcl.git
+RUN mkdir bls
+COPY . bls/
+RUN cd bls ; make clean && make test_go DOCKER=alpine -j && cp lib/* /usr/lib/