feat(ci): switch docker image to alpine for lower overhead

This commit is contained in:
DJMrTV 2025-03-06 18:43:38 +01:00
commit 37a3c60a7a
2 changed files with 5 additions and 3 deletions

View file

@ -1,2 +1,2 @@
[target.'cfg(target_arch = "x86_64")'] [target.'cfg(target_arch = "x86_64")']
rustflags = ["-C", "target-feature=+aes,+sse2"] rustflags = ["-C", "target-feature=+aes,+sse2,-crt-static"]

View file

@ -1,4 +1,6 @@
FROM rust:1.85 as builder FROM rust:alpine as builder
RUN apk add --no-cache musl-dev openssl-dev musl openssl libcrypto3
WORKDIR /app WORKDIR /app
@ -8,7 +10,7 @@ RUN cargo build --release
RUN rm .env RUN rm .env
FROM rust:1.85 AS final FROM rust:alpine AS final
WORKDIR /app WORKDIR /app