Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 5848438

Browse files
committed
oci: Fix a bug in building alpine based images
1 parent 22cd714 commit 5848438

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.cargo/config.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2+
[target.aarch64-unknown-linux-musl]
3+
linker = "clang"
4+
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
5+
16
[target.x86_64-unknown-linux-gnu]
27
linker = "clang"
38
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
9+
10+
[target.x86_64-unknown-linux-musl]
11+
linker = "clang"
12+
rustflags = ["-C", "link-arg=-fuse-ld=mold"]

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ RUN apk add --no-cache libgcc opencv
2121
FROM docker.io/rust:1-alpine${ALPINE_VERSION} as builder
2222

2323
# Install dependencies
24-
RUN apk add --no-cache bzip2-dev clang-dev cmake g++ \
25-
make musl-dev nasm opencv-dev xz-dev zlib-dev
24+
RUN apk add --no-cache bzip2-static clang-dev cmake g++ \
25+
make mold musl-dev nasm xz-static zlib-static
2626

2727
# Load source files
2828
ADD . /src

0 commit comments

Comments
 (0)