-
Notifications
You must be signed in to change notification settings - Fork 396
Expand file tree
/
Copy pathaggregator.Dockerfile
More file actions
28 lines (21 loc) · 1.24 KB
/
aggregator.Dockerfile
File metadata and controls
28 lines (21 loc) · 1.24 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
FROM ghcr.io/yetanotherco/aligned_layer/aligned_base:latest AS builder
WORKDIR /aligned_layer
COPY go.mod .
COPY go.sum .
COPY aggregator ./aggregator
COPY core ./core
COPY metrics ./metrics
COPY contracts/bindings/ ./contracts/bindings
RUN go get github.com/btcsuite/btcd/btcec/v2@v2.2.0
RUN go get github.com/ethereum/go-ethereum@v1.14.0
RUN go get github.com/gorilla/websocket@v1.5.1
RUN go build -o ./aligned-layer-aggregator aggregator/cmd/main.go
FROM debian:bookworm-slim
WORKDIR /aggregator
COPY --from=builder /aligned_layer/aligned-layer-aggregator /usr/local/bin/aligned-layer-aggregator
COPY config-files/config-aggregator-docker.yaml ./config-files/config-aggregator-docker.yaml
COPY contracts/script/output/devnet/alignedlayer_deployment_output.json ./contracts/script/output/devnet/alignedlayer_deployment_output.json
COPY contracts/script/output/devnet/eigenlayer_deployment_output.json ./contracts/script/output/devnet/eigenlayer_deployment_output.json
COPY config-files/anvil.aggregator.ecdsa.key.json ./config-files/anvil.aggregator.ecdsa.key.json
COPY config-files/anvil.aggregator.bls.key.json ./config-files/anvil.aggregator.bls.key.json
CMD ["aligned-layer-aggregator", "--config", "config-files/config-aggregator-docker.yaml"]