From 83ea1a15c7b589cacc2b621aa5f7f48f861facae Mon Sep 17 00:00:00 2001 From: neri Date: Thu, 3 Dec 2020 23:30:54 +0100 Subject: [PATCH] strip binary in docker build --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 2f248c3..ffb6820 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ COPY --chown=rust template ./template COPY --chown=rust init-db.sql ./init-db.sql RUN touch src/main.rs RUN cargo build --release --features vendored +RUN strip target/x86_64-unknown-linux-musl/release/datatrash FROM alpine:latest