-
Notifications
You must be signed in to change notification settings - Fork 1
/
Proxy.Dockerfile
26 lines (23 loc) · 1007 Bytes
/
Proxy.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
FROM rust:1.76-bullseye AS builder
RUN cargo install wasm-pack
RUN mkdir /rust
COPY ./Cargo.toml /rust
COPY ./core /rust/core
COPY ./das_api /rust/das_api
COPY ./digital_asset_types /rust/digital_asset_types
COPY ./integration_tests /rust/integration_tests
COPY ./metaplex-rpc-proxy /rust/metaplex-rpc-proxy
COPY ./migration /rust/migration
COPY ./nft_ingester /rust/nft_ingester
COPY ./ops /rust/ops
COPY ./program_transformers /rust/program_transformers
COPY ./tools /rust/tools
COPY ./blockbuster /rust/blockbuster
WORKDIR /rust/metaplex-rpc-proxy
RUN mkdir /rust/wasm-out/
RUN --mount=type=cache,target=/rust/target,id=das-wasm \
wasm-pack build --release && cp /rust/target/wasm32-unknown-unknown/release/metaplex_rpc_proxy.wasm /rust/wasm-out/
FROM envoyproxy/envoy:v1.24.0
COPY --from=builder /rust/wasm-out/metaplex_rpc_proxy.wasm /etc/rpc_proxy.wasm
RUN apt-get update && apt-get install -y ca-certificates
ENTRYPOINT /usr/local/bin/envoy -c /etc/envoy.yaml -l trace --service-cluster proxy