From f3f24621121fd2646727f44c6cbd5dfc4a100845 Mon Sep 17 00:00:00 2001 From: redbinder0526 Date: Tue, 28 Apr 2026 20:48:59 +0200 Subject: [PATCH] oops forgor the important flags --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 98cb462..d868a5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /app COPY Cargo.toml Cargo.lock ./ COPY mii ./mii RUN mkdir src && echo "fn main() {println!(\"dummy\");}" > src/main.rs -RUN OPENSSL_STATIC=1 cargo build --target x86_64-unknown-linux-musl --profile prod +RUN OPENSSL_LIB_DIR=/usr/lib OPENSSL_INCLUDE_DIR=/usr/include/openssl OPENSSL_STATIC=1 RUSTFLAGS="-C target-feature=+aes,+sse -C relocation-model=static -C linker=ld.lld" cargo build --target x86_64-unknown-linux-musl --profile prod COPY . .