-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.indexer
44 lines (34 loc) · 2.22 KB
/
Dockerfile.indexer
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
FROM danieltehrani/creddd-indexer-base-amd64:latest as builder
ENV SCCACHE_GCS_BUCKET=creddd-sccache
ENV SCCACHE_GCS_KEY_PATH=/usr/src/app/google-service-account.json
ENV SCCACHE_GCS_RW_MODE=READ_WRITE
COPY google-service-account.json google-service-account.json
COPY packages/indexer-rs packages/indexer-rs
COPY packages/protobufs packages/protobufs
COPY Cargo.toml.docker Cargo.toml
COPY Cargo.lock Cargo.lock
RUN cargo build --release
FROM ubuntu:latest
WORKDIR /usr/src/app
ENV RUST_LOG=info
COPY --from=builder /usr/src/app/target/release/indexer /usr/local/bin/indexer
COPY --from=builder /usr/src/app/target/release/populate /usr/local/bin/populate
COPY --from=builder /usr/src/app/target/release/count_synched_logs /usr/local/bin/count_synched_logs
COPY --from=builder /usr/src/app/target/release/checkpoint /usr/local/bin/checkpoint
COPY --from=builder /usr/src/app/target/release/delete_logs /usr/local/bin/delete_logs
COPY --from=builder /usr/src/app/packages/indexer-rs/src/seeder/seed_contracts.json seed_contracts.json
COPY --from=builder /usr/src/app/packages/indexer-rs/src/seeder/assets_with_prices.json assets_with_prices.json
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/base_salon.csv base_salon.csv
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/blast_salon.csv blast_salon.csv
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/eth_salon.csv eth_salon.csv
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/arb_salon.csv arb_salon.csv
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/op_salon.csv op_salon.csv
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/friend_bag_holder.csv friend_bag_holder.csv
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/fc_1k.csv fc_1k.csv
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/fc_10k.csv fc_10k.csv
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/fc_100k.csv fc_100k.csv
COPY --from=builder /usr/src/app/packages/indexer-rs/src/fixed_groups/fc_power_users.csv fc_power_users.csv
RUN apt-get update -y
RUN apt-get install libcurl4 -y
# Set the binary as the entrypoint of the container
CMD ["indexer"]