19 lines
773 B
Docker
19 lines
773 B
Docker
ARG GO_VERSION=1.14.2
|
|
|
|
FROM golang:${GO_VERSION}-buster as downloader
|
|
|
|
## 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.
|
|
|
|
RUN go get github.com/filecoin-project/go-paramfetch/paramfetch
|
|
COPY /proof-parameters.json /
|
|
RUN paramfetch 2048 /proof-parameters.json
|
|
|
|
FROM ubuntu:18.04
|
|
|
|
RUN apt-get update && apt-get install -y ca-certificates llvm clang mesa-opencl-icd ocl-icd-opencl-dev jq gcc pkg-config net-tools netcat traceroute iputils-ping wget vim curl telnet iproute2 dnsutils
|
|
COPY --from=downloader /var/tmp/filecoin-proof-parameters /var/tmp/filecoin-proof-parameters
|