mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
* feat(images): add dockerfiles for the OCI distributions of krata components Signed-off-by: Ariadne Conill <ariadne@dereferenced.org> * feat(images): add oci distribution workflow Signed-off-by: Ariadne Conill <ariadne@dereferenced.org> --------- Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
14 lines
529 B
Docker
14 lines
529 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 kratanet
|
|
RUN mv ./target/$(./hack/build/target.sh)/release/kratanet /usr/sbin
|
|
|
|
FROM cgr.dev/chainguard/static AS final
|
|
ENTRYPOINT ["/usr/sbin/kratanet"]
|
|
COPY --from=build /usr/sbin/kratanet /usr/sbin/kratanet
|
|
COPY ./resources/systemd/kratanet.service /usr/lib/systemd/system/kratanet.service
|