check-da-helm/Dockerfile

12 lines
325 B
Docker
Raw Normal View History

2023-02-14 21:16:34 +00:00
FROM rust:1.66.1-alpine3.17 as builder
WORKDIR /src
RUN apk update && apk add --no-cache gcc musl-dev
COPY ./ .
2023-03-17 10:02:04 +00:00
RUN rustup default nightly && rustup update
RUN cargo build --release --jobs 2 -Z sparse-registry
2023-02-14 21:16:34 +00:00
FROM alpine:3.17.1
COPY --from=builder /src/target/release/cdh /bin/cdh
WORKDIR /workdir
ENTRYPOINT ["/bin/cdh"]