mirror of
https://codeberg.org/gigirassy/image-proxy/
synced 2026-08-30 15:37:41 +00:00
Update Dockerfile
This commit is contained in:
+5
-7
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user