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