2020-06-22 15:17:42 +00:00
|
|
|
ARG GO_VERSION=1.14.2
|
|
|
|
|
|
|
|
FROM golang:${GO_VERSION}-buster
|
|
|
|
|
2020-06-25 13:36:30 +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
|
2020-06-22 15:17:42 +00:00
|
|
|
|
2020-10-06 14:40:23 +00:00
|
|
|
ARG FILECOIN_FFI_COMMIT=57e38efe4943f09d3127dcf6f0edd614e6acf68e
|
2020-06-23 13:20:47 +00:00
|
|
|
ARG FFI_DIR=/extra/filecoin-ffi
|
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
|
|
|
|
2020-10-06 14:40:23 +00:00
|
|
|
ARG FIL_BLST_COMMIT=8609119cf4595d1741139c24378fcd8bc4f1c475
|
2020-09-16 15:30:03 +00:00
|
|
|
ARG BLST_DIR=/extra/fil-blst
|
|
|
|
|
|
|
|
RUN mkdir -p ${BLST_DIR} \
|
|
|
|
&& git clone https://github.com/filecoin-project/fil-blst.git ${BLST_DIR} \
|
|
|
|
&& cd ${BLST_DIR} \
|
|
|
|
&& git checkout ${FIL_BLST_COMMIT}
|