forked from neri/datatrash
strip binary in docker build
This commit is contained in:
parent
4efea5e221
commit
83ea1a15c7
|
@ -14,6 +14,7 @@ COPY --chown=rust template ./template
|
||||||
COPY --chown=rust init-db.sql ./init-db.sql
|
COPY --chown=rust init-db.sql ./init-db.sql
|
||||||
RUN touch src/main.rs
|
RUN touch src/main.rs
|
||||||
RUN cargo build --release --features vendored
|
RUN cargo build --release --features vendored
|
||||||
|
RUN strip target/x86_64-unknown-linux-musl/release/datatrash
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue