strip binary in docker build

This commit is contained in:
neri 2020-12-03 23:30:54 +01:00
parent 4efea5e221
commit 83ea1a15c7
1 changed files with 1 additions and 0 deletions

View File

@ -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