Skip to content

Commit

Permalink
Compile with no crt static to solve linking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor-k committed Apr 12, 2024
1 parent cafdde4 commit 1920b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM rust:1.77-alpine AS rust
#RUN dpkg --add-architecture arm64
#RUN apt-get update && apt-get -y install libssl-dev:arm64 openssl:arm64 musl-tools clang llvm pkg-config

RUN apk add musl-dev clang llvm openssl-dev openssl pkgconfig
RUN apk add --no-cache musl-dev clang llvm openssl-dev openssl pkgconfig

#RUN rustup component add rustfmt clippy

Expand All @@ -23,7 +23,7 @@ COPY src ./src
# cargo clippy --locked -- -D warnings

ENV SOURCE_DATE_EPOCH=1
RUN PKG_CONFIG_ALLOW_CROSS=1 cargo build --release
RUN RUSTFLAGS="-Ctarget-feature=-crt-static" cargo build --release

RUN cp target/release/main .

Expand Down

0 comments on commit 1920b3c

Please sign in to comment.