forked from tombeynon/easy-0l-miner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (29 loc) · 988 Bytes
/
Dockerfile
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
#
# Install from source to include latest patches
#
FROM rust:buster AS base
RUN apt-get update && \
apt-get install --no-install-recommends --assume-yes ca-certificates git make && \
apt-get clean
FROM base AS build
RUN git clone https://github.com/OLSF/libra.git /root/libra
WORKDIR /root/libra
RUN apt-get install -y git vim zip unzip jq build-essential cmake clang llvm libgmp-dev secure-delete pkg-config libssl-dev lld
RUN cargo install toml-cli
RUN cargo install sccache
RUN make bins && make install
FROM base
COPY --from=build /root/bin/* /usr/bin/
#
# Install using official install script in the future
#
# FROM ubuntu:focal
# ENV PATH="${PATH}:~/bin"
# RUN apt-get update && apt-get install -y curl && apt-get clean
# RUN curl -sL https://raw.githubusercontent.com/OLSF/libra/main/ol/util/install.sh | bash
ENV NODE_ENV="prod"
WORKDIR /root/.0L
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
CMD tower -U start