2022-04-19 16:40:16 +00:00
|
|
|
ARG GO_VERSION=1.17.9
|
2020-06-22 15:17:42 +00:00
|
|
|
|
2020-06-23 13:20:47 +00:00
|
|
|
FROM golang:${GO_VERSION}-buster as downloader
|
2020-06-22 15:17:42 +00:00
|
|
|
|
2020-06-23 13:20:47 +00:00
|
|
|
## Fetch the proof parameters.
|
|
|
|
## 1. Install the paramfetch binary first, so it can be cached over builds.
|
|
|
|
## 2. Then copy over the parameters (which could change).
|
|
|
|
## 3. Trigger the download.
|
|
|
|
## Output will be in /var/tmp/filecoin-proof-parameters.
|
2020-06-22 15:17:42 +00:00
|
|
|
|
2021-04-27 14:28:57 +00:00
|
|
|
RUN go get github.com/filecoin-project/go-paramfetch/paramfetch@master
|
2020-06-23 13:20:47 +00:00
|
|
|
COPY /proof-parameters.json /
|
2020-11-27 18:36:02 +00:00
|
|
|
RUN paramfetch 8388608 /proof-parameters.json
|
2020-06-22 15:17:42 +00:00
|
|
|
|
2020-06-23 13:20:47 +00:00
|
|
|
FROM ubuntu:18.04
|
2020-06-22 15:17:42 +00:00
|
|
|
|
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 gcc pkg-config libhwloc-dev
|
|
|
|
|
|
|
|
RUN apt-get install -y jq net-tools netcat traceroute iputils-ping wget vim curl telnet iproute2 dnsutils
|
|
|
|
|
2020-06-24 12:29:04 +00:00
|
|
|
COPY --from=downloader /var/tmp/filecoin-proof-parameters /var/tmp/filecoin-proof-parameters
|
2020-11-06 19:39:15 +00:00
|
|
|
|
|
|
|
RUN ldconfig
|