Update Dockerfile

This commit is contained in:
gigirassy
2026-05-28 18:28:31 +02:00
parent ffc2145adb
commit af4ad54190
+5 -7
View File
@@ -1,18 +1,16 @@
#
FROM rust:latest as builder
FROM kgrv/rust as builder
^C
USER root
RUN apt update && apt install -y ca-certificates
RUN apk update && apk add rust ca-certificates musl-dev build-base openssl-dev cargo
WORKDIR /app
COPY Cargo.toml .
COPY src ./src
RUN cargo update && cargo build --release
RUN RUSTFLAGS="-Ctarget-feature=+crt-static" compile --release
FROM gcr.io/distroless/cc-debian13:nonroot
FROM scratch
COPY --from=builder /app/target/release/image-proxy /usr/local/bin/image-proxy