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
1
2
FROM rust:1.67.0-bullseye as builder
2
3
WORKDIR /usr/src/edge-runtime
4
+ RUN --mount=type=cache,target=/usr/local/cargo/registry \
5
+ cargo install cargo-strip
3
6
COPY . .
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
6
10
7
11
FROM debian:bullseye-slim
8
12
RUN 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" }
13
13
clap = " 4.0.29"
14
14
env_logger = " 0.10.0"
15
15
log = { workspace = true }
16
+
17
+ [profile .release ]
18
+ strip =" debuginfo"
You can’t perform that action at this time.
0 commit comments