ci: fix rust musl target build
This commit is contained in:
parent
fd99e8cea1
commit
3b27ddf356
1 changed files with 2 additions and 3 deletions
|
|
@ -46,9 +46,8 @@ ENV RUSTFLAGS="-C target-feature=+crt-static -C link-arg=-s"
|
|||
ENV OPENSSL_STATIC=1
|
||||
ENV OPENSSL_DIR=/usr
|
||||
RUN cargo build --release \
|
||||
--bin $(cat /tmp/service_bin) \
|
||||
--target x86_64-unknown-linux-musl && \
|
||||
cp /app/target/x86_64-unknown-linux-musl/release/$(cat /tmp/service_bin) /app/service
|
||||
--bin $(cat /tmp/service_bin) && \
|
||||
cp /app/target/release/$(cat /tmp/service_bin) /app/service
|
||||
|
||||
# Runtime
|
||||
FROM scratch
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue