Skip to content

Commit bb01496

Browse files
authored
Update Dockerfile for mainnet
1 parent e13f816 commit bb01496

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
FROM golang:1.18.8-buster AS builder_hyperspace
1+
FROM golang:1.18.8-buster AS builder_mainnet
22

33
RUN apt update
44
RUN 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
66
RUN apt install -y git ssh wget
77

88
WORKDIR /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
1414
RUN 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
1717
RUN make install
1818

1919

2020
FROM 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
2323
RUN adduser --disabled-password --gecos "" --uid 1000 service
2424
WORKDIR /home/service
2525
RUN apt update && apt install libhwloc-dev -y

0 commit comments

Comments
 (0)