mirror of https://github.com/linkerd/linkerd2.git
25 lines
877 B
Plaintext
25 lines
877 B
Plaintext
# Proxy dependencies
|
|
#
|
|
# Fetches all required rust dependencies and caches library artifacts. All Conduit sources
|
|
# are omitted from the resulting image so that artifacts may be built from source over
|
|
# this image.
|
|
#
|
|
# When this file is changed, you must run `bin/update-proxy-deps-shas`.
|
|
|
|
# Compile the application to ensure we've obtained all build dependencies and that they
|
|
# compile.
|
|
FROM rust:1.23.0 as build
|
|
WORKDIR /usr/src/conduit
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY proto ./proto
|
|
COPY proxy ./proxy
|
|
RUN cargo fetch --locked
|
|
|
|
# Preserve dependency sources and build artifacts without maintaining conduit
|
|
# sources/artifacts.
|
|
FROM rust:1.23.0
|
|
WORKDIR /usr/src/conduit
|
|
COPY --from=build $CARGO_HOME $CARGO_HOME
|
|
COPY --from=build /usr/src/conduit/Cargo.toml Cargo.toml
|
|
COPY --from=build /usr/src/conduit/Cargo.lock Cargo.lock
|