Update Dockerfile

This commit is contained in:
gigirassy
2026-05-28 18:58:57 +02:00
parent f8dd0d6c34
commit 3053a2e8d2
+4 -2
View File
@@ -2,7 +2,9 @@ FROM 11notes/alpine:stable as builder
USER root
RUN apk update && apk add rust ca-certificates musl-dev build-base openssl-dev cargo curl
RUN apk update && apk add ca-certificates musl-dev build-base openssl-dev curl
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /app
COPY Cargo.toml .
@@ -10,7 +12,7 @@ COPY src ./src
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN ~/.cargo/bin/rustup target add x86_64-unknown-linux-musl
RUN rustup target add x86_64-unknown-linux-musl
RUN RUSTFLAGS="-Ctarget-feature=+crt-static" cargo build --release --target x86_64-unknown-linux-musl