build(docker): strip debug symbols from binary after build
This commit is contained in:
parent
430ba54185
commit
b6b0b1bf9a
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ RUN mkdir src \
|
|||
&& touch src/lib.rs \
|
||||
&& echo "fn main() {}" > build.rs \
|
||||
&& cargo patch-crate \
|
||||
&& cargo build --locked --release --no-default-features --features $CARGO_FEATURES
|
||||
&& cargo build --locked --release --no-default-features --features $CARGO_FEATURES \
|
||||
&& strip ./target/release/ssh-portfolio
|
||||
|
||||
COPY . .
|
||||
COPY --from=www /usr/src/www/build www/build
|
||||
|
|
Loading…
Add table
Reference in a new issue