diff --git a/Cargo.toml b/Cargo.toml index 7f6a5ce..ebeb863 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,6 +66,7 @@ debug = false panic = "unwind" lto = true codegen-units = 1 +strip = true [profile.bench] opt-level = 3 diff --git a/Dockerfile b/Dockerfile index b554bc1..a1bf304 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,6 @@ COPY . . RUN cargo build --locked --release RUN mkdir -p build-out/ RUN cp target/release/rustypaste build-out/ -RUN strip build-out/rustypaste FROM scratch WORKDIR /app