-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (27 loc) · 1 KB
/
Dockerfile
File metadata and controls
38 lines (27 loc) · 1 KB
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
FROM rust:1.92.0-slim-bookworm AS builder
ARG is_release=false
RUN apt update -y && \
apt upgrade -y && \
apt install -y protobuf-compiler libclang-dev build-essential libssl-dev pkg-config
RUN apt autoremove
WORKDIR /zilliqa
RUN mkdir build
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/target \
if [ "${is_release}" != "true" ] ; then \
cargo install cargo-auditable && \
cargo auditable build --bin zilliqa && \
mv ./target/debug/zilliqa ./build/ ;\
else \
cargo install cargo-auditable && \
cargo auditable build --release --bin zilliqa && \
mv ./target/release/zilliqa ./build/ ;\
fi
FROM ubuntu:24.04
RUN apt update -y && \
apt install -y build-essential libev-dev libgmp-dev curl
COPY --chmod=777 ./infra/run.sh /run.sh
COPY --from=builder /zilliqa/build/zilliqa /zilliqa
COPY --from=asia-docker.pkg.dev/prj-p-devops-services-tvwmrf63/zilliqa-public/scilla:abdb24b1 /scilla/0 /scilla/0
ENTRYPOINT [ "/run.sh" ]