From 846b7f3a2449f4fffa15fc3c61c5bcf84f7ab57a Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Thu, 31 Aug 2023 21:03:37 +0200 Subject: [PATCH] fix cc --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a88dc34..128b1fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM docker.io/library/rust:1.72 as build -RUN rustup target add x86_64-unknown-linux-musl - RUN apt-get update RUN apt-get install musl-tools -y @@ -10,16 +8,16 @@ COPY Cargo.toml Cargo.lock rust-toolchain.toml ./ RUN mkdir src RUN echo "fn main() {}" > src/main.rs -RUN cargo build --release --target x86_64-unknown-linux-musl +RUN cargo build --release COPY . . # now rebuild with the proper main RUN touch src/main.rs -RUN cargo build --release --target x86_64-unknown-linux-musl +RUN cargo build --release ### RUN -FROM gcr.io/distroless/static-debian12 +FROM gcr.io/distroless/cc WORKDIR /app