chore(build): strip the binary

This commit is contained in:
Orhun Parmaksız 2022-03-23 16:48:31 +03:00
parent 9136d1ce09
commit 8ed0b7bbf1
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
2 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,9 @@ jobs:
target: ${{ matrix.TARGET }}
override: true
- name: Build
run: cargo build --release --locked --target ${{ matrix.TARGET }}
run: |
cargo build --release --locked --target ${{ matrix.TARGET }}
strip target/${{ matrix.TARGET }}/release/rustypaste
- name: Prepare release assets
run: |
mkdir release/

View File

@ -9,6 +9,7 @@ COPY . .
RUN cargo build --locked --release
RUN mkdir -p build-out/
RUN cp target/x86_64-unknown-linux-musl/release/rustypaste build-out/
RUN strip build-out/rustypaste
FROM scratch
WORKDIR /app