-
Notifications
You must be signed in to change notification settings - Fork 151
/
Dockerfile
92 lines (54 loc) · 2.73 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
ARG node=node:20-alpine
FROM ${node} AS node
FROM node AS builder
RUN apk add g++ make python3 py3-setuptools
WORKDIR /squid
ADD . .
RUN node common/scripts/install-run-rush.js install
RUN rm common/config/rush/build-cache.json
RUN node common/scripts/install-run-rush.js build
FROM builder AS solana-dump-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/solana-dump
FROM node AS solana-dump
COPY --from=solana-dump-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/solana/solana-dump/bin/run.js"]
FROM builder AS solana-ingest-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/solana-ingest
FROM node AS solana-ingest
COPY --from=solana-ingest-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/solana/solana-ingest/bin/run.js"]
FROM builder AS substrate-dump-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/substrate-dump
FROM node AS substrate-dump
COPY --from=substrate-dump-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/substrate/substrate-dump/bin/run.js"]
FROM builder AS substrate-ingest-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/substrate-ingest
FROM node AS substrate-ingest
COPY --from=substrate-ingest-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/substrate/substrate-ingest/bin/run.js"]
FROM builder AS substrate-metadata-service-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/substrate-metadata-service
FROM node AS substrate-metadata-service
COPY --from=substrate-metadata-service-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/substrate/substrate-metadata-service/bin/run.js"]
FROM builder AS tron-dump-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/tron-dump
FROM node AS tron-dump
COPY --from=tron-dump-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/tron/tron-dump/bin/run.js"]
FROM builder AS tron-ingest-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/tron-ingest
FROM node AS tron-ingest
COPY --from=tron-ingest-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/tron/tron-ingest/bin/run.js"]
FROM builder AS fuel-dump-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/fuel-dump
FROM node AS fuel-dump
COPY --from=fuel-dump-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/fuel/fuel-dump/bin/run.js"]
FROM builder AS fuel-ingest-builder
RUN node common/scripts/install-run-rush.js deploy --project @subsquid/fuel-ingest
FROM node AS fuel-ingest
COPY --from=fuel-ingest-builder /squid/common/deploy /squid
ENTRYPOINT ["node", "/squid/fuel/fuel-ingest/bin/run.js"]