[#24] Added musl target to release builder

master^2
Jef Roosens 2021-04-17 10:32:16 +02:00
parent f381c5b910
commit 5746d29556
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ FROM chewingbever/fej-builder:latest AS builder
# NOTE: cargo install auto-appends bin to the path # NOTE: cargo install auto-appends bin to the path
RUN --mount=type=cache,target=/usr/src/app/target \ RUN --mount=type=cache,target=/usr/src/app/target \
--mount=type=cache,target=/root/.cargo/registry \ --mount=type=cache,target=/root/.cargo/registry \
cargo install --path . --root /usr/local cargo install \
--path . \
--root /usr/local \
--target x86_64-unknown-linux-musl
# Now, we create the actual image # Now, we create the actual image