feat(ci): switch docker image to alpine for lower overhead
This commit is contained in:
parent
7adeca6069
commit
37a3c60a7a
2 changed files with 5 additions and 3 deletions
|
|
@ -1,2 +1,2 @@
|
|||
[target.'cfg(target_arch = "x86_64")']
|
||||
rustflags = ["-C", "target-feature=+aes,+sse2"]
|
||||
rustflags = ["-C", "target-feature=+aes,+sse2,-crt-static"]
|
||||
|
|
@ -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
|
||||
|
||||
|
|
@ -8,7 +10,7 @@ RUN cargo build --release
|
|||
|
||||
RUN rm .env
|
||||
|
||||
FROM rust:1.85 AS final
|
||||
FROM rust:alpine AS final
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue