diff --git a/Dockerfile b/Dockerfile index 9a6f18f..3199c4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM --platform=$BUILDPLATFORM rust:1.75 AS build +FROM --platform=$BUILDPLATFORM rust:1.70 AS build ARG TARGETARCH RUN echo "export PATH=/usr/local/cargo/bin:$PATH" >> /etc/profile @@ -23,7 +23,7 @@ RUN touch src/main.rs && cargo build --release --target=$(cat /.platform) RUN mkdir -p /release/$TARGETARCH RUN cp ./target/$(cat /.platform)/release/metrics /release/$TARGETARCH/metrics -FROM gcr.io/distroless/cc-debian12 +FROM gcr.io/distroless/cc-debian11 ARG TARGETARCH COPY --from=build /release/$TARGETARCH/metrics /