From 62fd02057a2f7a3d838eb3e088c5eddaac05dbd4 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 27 Jul 2019 16:39:49 +0200 Subject: [PATCH] Strip binary after compiling --- backend/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/Dockerfile b/backend/Dockerfile index 6528846..6bcfd27 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -15,6 +15,8 @@ COPY ./src ./src # build source code RUN cargo build --release +RUN strip ./target/x86_64-unknown-linux-musl/release/gitache + # create /etc/password for rootless scratch container FROM alpine:latest as user_builder