forked from matter-labs/era-consensus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (28 loc) · 858 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
# Build Stage
FROM rust:latest as builder
COPY /node/ /app/
WORKDIR /app
RUN apt-get update && apt-get install -y libclang-dev
RUN cargo build --release
# Binary copy stage
FROM scratch as executor-binary
COPY --from=builder /app/target/release/executor .
# Binary copy stage
FROM scratch as tester-binary
COPY --from=builder /app/target/release/tester .
# Executor runtime Stage
FROM debian:stable-slim as executor-runtime
COPY /node/tools/docker_binaries/executor /node/
COPY k8s_entrypoint.sh /node/
WORKDIR /node
RUN chmod +x k8s_entrypoint.sh
ENTRYPOINT ["./docker-entrypoint.sh"]
EXPOSE 3054
EXPOSE 3051
# Tester runtime Stage
FROM debian:stable-slim as tester-runtime
COPY node/tools/docker_binaries/tester /test/
COPY node/tests/tester_entrypoint.sh /test/
COPY node/tests/config.txt /test/
WORKDIR /test
RUN chmod +x tester_entrypoint.sh