2020-06-22 15:17:42 +00:00
|
|
|
ARG GO_VERSION=1.14.2
|
|
|
|
|
|
|
|
FROM golang:${GO_VERSION}-buster
|
|
|
|
|
2020-06-23 13:20:47 +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
|
2020-06-22 15:17:42 +00:00
|
|
|
|
2020-06-23 13:20:47 +00:00
|
|
|
ARG FILECOIN_FFI_COMMIT=ca281af0b6c00314382a75ae869e5cb22c83655b
|
|
|
|
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
|