diff --git a/Dockerfile b/Dockerfile index 7c06116..d3f8be9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,9 @@ WORKDIR /app COPY Cargo.toml . COPY src ./src -RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain unknown-linux-musl -y +RUN curl https://sh.rustup.rs -sSf | sh -s -- -y + +RUN rustup target add x86_64-unknown-linux-musl RUN RUSTFLAGS="-Ctarget-feature=+crt-static" cargo build --release --target x86_64-unknown-linux-musl