forked from silius-rs/silius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (22 loc) · 992 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
# build
FROM ubuntu:18.04 AS builder
RUN apt-get update && apt-get -y upgrade && apt-get install -y build-essential software-properties-common curl git clang libclang-dev
RUN add-apt-repository ppa:ethereum/ethereum && apt-get update && apt-get install -y solc
RUN curl -sL https://deb.nodesource.com/setup_14.x | sh -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y nodejs yarn
WORKDIR /rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:$PATH"
WORKDIR /silius
COPY . .
RUN make fetch-thirdparty
RUN make setup-thirdparty
RUN make build
# run
FROM frolvlad/alpine-glibc
COPY --from=builder /silius/target/release/silius /usr/local/bin/silius
EXPOSE 3000
ENTRYPOINT ["usr/local/bin/silius"]
LABEL org.opencontainers.image.source=https://github.com/Vid201/silius