File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.18.8-buster AS builder_hyperspace
1+ FROM golang:1.18.8-buster AS builder_mainnet
22
33RUN apt update
44RUN apt upgrade -y
5- RUN apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev -y
5+ RUN apt install cargo mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev -y
66RUN apt install -y git ssh wget
77
88WORKDIR /build
99
10- RUN git clone --branch v1.20.0-hyperspace-nv20-event-migration-patch -v --progress https://github.com/filecoin-project/lotus.git .
10+ RUN git clone --depth 1 -- branch v1.20.3 -v --progress https://github.com/filecoin-project/lotus.git .
1111
12- RUN wget https://sh.rustup.rs
13- RUN mv index.html rustup-init
12+ SHELL [ "/bin/bash" , "-c" ]
13+ RUN wget https://sh.rustup.rs -O rustup-init
1414RUN chmod +x rustup-init
15- RUN ./rustup-init -y
16- RUN make clean hyperspacenet
15+ RUN ./rustup-init -y && source $HOME/.cargo/env
16+ RUN make clean all
1717RUN make install
1818
1919
2020FROM golang:1.18.8-buster
2121
22- COPY --from=builder_hyperspace /usr/local/bin /usr/local/bin
22+ COPY --from=builder_mainnet /usr/local/bin /usr/local/bin
2323RUN adduser --disabled-password --gecos "" --uid 1000 service
2424WORKDIR /home/service
2525RUN apt update && apt install libhwloc-dev -y
You can’t perform that action at this time.
0 commit comments