-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile-lite
49 lines (32 loc) · 1.34 KB
/
Dockerfile-lite
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# syntax=docker/dockerfile:1.4
# See: https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md
FROM ghcr.io/jimpick/lotus-fvm-localnet-ready@sha256:46355d76ffc486ac8a7a81b4fd8e47d9c3fadeae9ea2e5a3bca6318527f50a9e as build
USER root
WORKDIR /home/ubuntu/lotus
RUN make install
RUN cp ./lotus-seed /usr/local/bin
RUN cp ./lotus-shed /usr/local/bin
# Copy to new image
FROM ubuntu
RUN useradd ubuntu
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN apt install -y mesa-opencl-icd jq curl hwloc
RUN apt install -y vim less htop
RUN apt upgrade -y
ENV PATH="/usr/local/go/bin:${PATH}"
WORKDIR /home/ubuntu
COPY --from=build /usr/local /usr/local
COPY --from=build /home/ubuntu/.genesis-sectors /home/ubuntu/.genesis-sectors
COPY --from=build /home/ubuntu/.lotus-local-net /home/ubuntu/.lotus-local-net
COPY --from=build /home/ubuntu/.lotus-miner-local-net /home/ubuntu/.lotus-miner-local-net
COPY --from=build /var/tmp/filecoin-proof-parameters /var/tmp/filecoin-proof-parameters
COPY --from=build /var/tmp/filecoin-parents /var/tmp/filecoin-proof-parents
RUN chown -R ubuntu. /home/ubuntu
RUN chown -R ubuntu. /var/tmp
USER ubuntu
ENV LOTUS_PATH="~/.lotus-local-net"
ENV LOTUS_MINER_PATH="~/.lotus-miner-local-net"
ENV LOTUS_SKIP_GENESIS_CHECK=_yes_
EXPOSE 1234
EXPOSE 2345