Strip binary after compiling

This commit is contained in:
Valentin Brandl 2019-07-27 16:39:49 +02:00
parent 662aa5ab69
commit 62fd02057a
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -15,6 +15,8 @@ COPY ./src ./src
# build source code # build source code
RUN cargo build --release RUN cargo build --release
RUN strip ./target/x86_64-unknown-linux-musl/release/gitache
# create /etc/password for rootless scratch container # create /etc/password for rootless scratch container
FROM alpine:latest as user_builder FROM alpine:latest as user_builder