2020-11-25 12:58:24 +00:00
|
|
|
ARG GO_VERSION=1.15.5
|
2020-06-22 15:17:42 +00:00
|
|
|
|
|
|
|
FROM golang:${GO_VERSION}-buster
|
|
|
|
|
2020-11-06 19:39:15 +00:00
|
|
|
RUN apt-get update && apt-get install -y ca-certificates llvm clang mesa-opencl-icd ocl-icd-opencl-dev jq gcc git pkg-config bzr libhwloc-dev
|
2020-06-22 15:17:42 +00:00
|
|
|
|
2020-11-25 12:58:24 +00:00
|
|
|
ARG FILECOIN_FFI_COMMIT=1d9cb3e8ff53f51f9318fc57e5d00bc79bdc0128
|
2020-11-06 19:39:15 +00:00
|
|
|
ARG FFI_DIR=/extern/filecoin-ffi
|
|
|
|
|
|
|
|
ARG BLST_COMMIT=1cbb16ed9580dcd3e9593b71221fcf2a048faaef
|
|
|
|
ARG BLST_DIR=/extern/blst
|
2020-06-22 15:17:42 +00:00
|
|
|
|
2020-06-23 13:20:47 +00:00
|
|
|
RUN mkdir -p ${FFI_DIR} \
|
|
|
|
&& git clone https://github.com/filecoin-project/filecoin-ffi.git ${FFI_DIR} \
|
|
|
|
&& cd ${FFI_DIR} \
|
|
|
|
&& git checkout ${FILECOIN_FFI_COMMIT} \
|
|
|
|
&& make
|
2020-09-16 15:30:03 +00:00
|
|
|
|
|
|
|
RUN mkdir -p ${BLST_DIR} \
|
2020-11-06 19:39:15 +00:00
|
|
|
&& git clone https://github.com/supranational/blst.git ${BLST_DIR} \
|
2020-09-16 15:30:03 +00:00
|
|
|
&& cd ${BLST_DIR} \
|
2020-11-06 19:39:15 +00:00
|
|
|
&& git checkout ${BLST_COMMIT}
|
|
|
|
|
|
|
|
RUN ldconfig
|