mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
fix(oci-distribution): use scratch images for OCI distributed-artefacts
Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
parent
deeaa20a4a
commit
3d348c859e
@ -7,6 +7,6 @@ COPY . .
|
||||
RUN ./hack/build/cargo.sh build --release --bin kratactl
|
||||
RUN mv ./target/$(./hack/build/target.sh)/release/kratactl /usr/sbin
|
||||
|
||||
FROM cgr.dev/chainguard/static AS final
|
||||
FROM scratch
|
||||
ENTRYPOINT ["/usr/sbin/kratactl"]
|
||||
COPY --from=build /usr/sbin/kratactl /usr/sbin/kratactl
|
||||
|
@ -7,7 +7,7 @@ COPY . .
|
||||
RUN ./hack/build/cargo.sh build --release --bin kratad
|
||||
RUN mv ./target/$(./hack/build/target.sh)/release/kratad /usr/sbin
|
||||
|
||||
FROM cgr.dev/chainguard/static AS final
|
||||
FROM scratch
|
||||
ENTRYPOINT ["/usr/sbin/kratad"]
|
||||
COPY --from=build /usr/sbin/kratad /usr/sbin/kratad
|
||||
COPY ./resources/systemd/kratad.service /usr/lib/systemd/system/kratad.service
|
||||
|
@ -7,7 +7,7 @@ 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
|
||||
FROM scratch
|
||||
ENTRYPOINT ["/usr/sbin/kratanet"]
|
||||
COPY --from=build /usr/sbin/kratanet /usr/sbin/kratanet
|
||||
COPY ./resources/systemd/kratanet.service /usr/lib/systemd/system/kratanet.service
|
||||
|
Loading…
Reference in New Issue
Block a user