forked from chainstack/fvm-hyperspace-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 793 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM golang:1.23.7 AS builder_mainnet
RUN apt update
RUN apt upgrade -y
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
RUN apt install -y git ssh wget
WORKDIR /build
RUN git clone --depth 1 --branch v1.33.0 -v --progress https://github.com/filecoin-project/lotus.git .
SHELL ["/bin/bash", "-c"]
RUN wget https://sh.rustup.rs -O rustup-init
RUN chmod +x rustup-init
RUN ./rustup-init -y && source $HOME/.cargo/env
RUN make clean all
RUN make install
FROM golang:1.23.7
COPY --from=builder_mainnet /usr/local/bin /usr/local/bin
RUN adduser --disabled-password --gecos "" --uid 1000 service
WORKDIR /home/service
RUN apt update && apt install libhwloc-dev -y
USER service
ENTRYPOINT ["lotus", "daemon"]