File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.4
12FROM rust:1.67.0-bullseye as builder
23WORKDIR /usr/src/edge-runtime
4+ RUN --mount=type=cache,target=/usr/local/cargo/registry \
5+ cargo install cargo-strip
36COPY . .
4- RUN cargo clean && \
5- cargo build -vv --release --target-dir /usr/target
7+ RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/usr/target \
8+ cargo build --release --target-dir /usr/target && \
9+ cargo strip
610
711FROM debian:bullseye-slim
812RUN apt-get update && apt-get install -y libssl-dev && rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change @@ -13,3 +13,6 @@ base = { path = "../base" }
1313clap = " 4.0.29"
1414env_logger = " 0.10.0"
1515log = { workspace = true }
16+
17+ [profile .release ]
18+ strip =" debuginfo"
You can’t perform that action at this time.
0 commit comments