From e3bc5fb175e06a972c4c427a5454e845a07df0cd Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sun, 15 Jan 2023 20:39:00 +0100 Subject: [PATCH] first commit --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c8517ed --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM rust:1.62.0-alpine3.16 as builder +RUN apk add alpine-sdk +RUN mkdir -p /src +WORKDIR /src +COPY ./ . +RUN cargo build --release + +FROM registry.kci.rocks/build_images/k8s-helmfile-deploy +RUN apk add --no-cache libstdc++ gcompat && apk add --no-cache yq --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community +COPY --from=builder /src/target/release/helmfile_checker /bin/helmfile_checker +ENV RUST_LOG=info +ENTRYPOINT ["/bin/helmfile_checker"]