Skip to content

Commit

Permalink
test(Dockerfile): use static binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 committed Sep 8, 2023
1 parent a4ecdd7 commit dae5480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM rust as build
WORKDIR /pacbot
COPY . /pacbot

RUN cargo install --locked --path /pacbot && cargo clean
RUN RUSTFLAGS='-C target-feature=+crt-static' cargo install --locked --path /pacbot --target x86_64-unknown-linux-gnu && cargo clean

FROM gcr.io/distroless/cc

Expand Down

0 comments on commit dae5480

Please sign in to comment.