aboutsummaryrefslogtreecommitdiffstats
path: root/images/bls-go-alpine/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'images/bls-go-alpine/Dockerfile')
-rw-r--r--images/bls-go-alpine/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/images/bls-go-alpine/Dockerfile b/images/bls-go-alpine/Dockerfile
new file mode 100644
index 0000000..94b3b8f
--- /dev/null
+++ b/images/bls-go-alpine/Dockerfile
@@ -0,0 +1,12 @@
+FROM golang:alpine
+MAINTAINER Jimmy Hu <jim2212001@gmail.com>
+
+# 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 git://github.com/herumi/mcl.git
+RUN mkdir bls
+COPY . bls/
+RUN cd bls ; make test_go DOCKER=alpine -j && cp lib/* /usr/lib/