fix openssl
All checks were successful
Build and Test / account (push) Successful in 8m0s

This commit is contained in:
Maple Nebel 2026-05-02 13:42:03 +02:00
commit 8d6a90df79
4 changed files with 11 additions and 7 deletions

View file

@ -2,7 +2,7 @@
FROM rust:alpine as builder
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static protobuf-dev lld
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static protobuf-dev lld perl make
WORKDIR /app
@ -16,7 +16,7 @@ COPY . .
RUN touch src/main.rs
ENV SQLX_OFFLINE=true
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 --profile prod --target x86_64-unknown-linux-musl
RUN RUSTFLAGS="-C target-feature=+aes,+sse -C relocation-model=static -C linker=ld.lld" cargo build --profile prod --target x86_64-unknown-linux-musl
FROM scratch AS final