25 lines
746 B
Docker
25 lines
746 B
Docker
ARG GO_VERSION=1.15.5
|
|
|
|
FROM golang:${GO_VERSION}-buster
|
|
|
|
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
|
|
|
|
ARG FILECOIN_FFI_COMMIT=1d9cb3e8ff53f51f9318fc57e5d00bc79bdc0128
|
|
ARG FFI_DIR=/extern/filecoin-ffi
|
|
|
|
ARG BLST_COMMIT=1cbb16ed9580dcd3e9593b71221fcf2a048faaef
|
|
ARG BLST_DIR=/extern/blst
|
|
|
|
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
|
|
|
|
RUN mkdir -p ${BLST_DIR} \
|
|
&& git clone https://github.com/supranational/blst.git ${BLST_DIR} \
|
|
&& cd ${BLST_DIR} \
|
|
&& git checkout ${BLST_COMMIT}
|
|
|
|
RUN ldconfig
|