Update Dockerfile and CI

This commit is contained in:
BloxerHD 2025-11-03 07:25:19 +00:00
commit 4d0dfccdb3
21 changed files with 792 additions and 20 deletions

View file

@ -13,9 +13,9 @@ RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo fetch
COPY . .
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
ENV SQLX_OFFLINE=true
RUN rm .env
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
FROM scratch AS final