Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 authored Feb 3, 2024
1 parent cde4083 commit ae9565d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ RUN if [ $TARGETARCH = "amd64" ]; then \
RUN rustup target add $(cat /tmp/arch)-unknown-linux-musl

COPY . .
RUN --mount=type=cache,target=/src/builder/target/ if [ &TARGETARCH = "arm64" ]; then \
CC_aarch64_unknown_linux_musl=clang;
AR_aarch64_unknown_linux_musl=llvm-ar; \
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld"; \
fi \
cargo build --target=$(cat /tmp/arch)-unknown-linux-musl --release && \
cp target/$(cat /tmp/arch)-unknown-linux-musl/release/expander /tmp/expander
RUN --mount=type=cache,target=/src/builder/target/ bash build.sh

FROM scratch

Expand Down

0 comments on commit ae9565d

Please sign in to comment.