mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 05:10:55 +00:00
13 lines
419 B
Docker
13 lines
419 B
Docker
FROM rust:1.79-alpine AS build
|
|
RUN apk update && apk add protoc protobuf-dev build-base && rm -rf /var/cache/apk/*
|
|
ENV TARGET_LIBC=musl TARGET_VENDOR=unknown
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY . .
|
|
RUN ./hack/build/cargo.sh build --release --bin kratactl
|
|
RUN mv ./target/$(./hack/build/target.sh)/release/kratactl /usr/sbin
|
|
|
|
FROM scratch
|
|
ENTRYPOINT ["/usr/sbin/kratactl"]
|
|
COPY --from=build /usr/sbin/kratactl /usr/sbin/kratactl
|