Skip to content

Commit

Permalink
Target musl
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Dec 10, 2024
1 parent 1b09246 commit 9dede69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ FROM rust:slim-bookworm AS builder
COPY ./Cargo.toml ./Cargo.lock ./
RUN cargo fetch
COPY ./src ./src
RUN cargo build --release

RUN rustup target add x86_64-unknown-linux-musl
RUN cargo build --release --target x86_64-unknown-linux-musl

FROM debian:bookworm-slim

Expand Down

0 comments on commit 9dede69

Please sign in to comment.