improve docker build speed

This commit is contained in:
Adil Hafeez 2024-09-16 19:20:27 -07:00
parent 9e50957f22
commit ed329bd419

View file

@ -1,5 +1,6 @@
# build filter using rust toolchain
FROM rust:1.80.0 as builder
RUN rustup -v target add wasm32-wasi
WORKDIR /envoyfilter
COPY envoyfilter/src /envoyfilter/src
COPY envoyfilter/Cargo.toml /envoyfilter/
@ -7,7 +8,6 @@ COPY envoyfilter/Cargo.lock /envoyfilter/
COPY open-message-format /open-message-format
COPY public-types /public-types
RUN rustup -v target add wasm32-wasi
RUN cargo build --release --target wasm32-wasi
# copy built filter into envoy image