11# stage 1 - Setup cargo-chef
2- FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 as planner
2+ FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 AS planner
33
44WORKDIR /app
55RUN apk add gcc g++ make
@@ -10,10 +10,10 @@ COPY ./crates/metrs_stubs ./crates/metrs_stubs
1010COPY ./crates/metrsd_client ./crates/metrsd_client
1111COPY ./bin/metrs/Cargo.toml ./bin/metrs/Cargo.toml
1212COPY ./bin/metrsd/Cargo.toml ./bin/metrsd/Cargo.toml
13- RUN cargo chef prepare --recipe-path recipe.json --bin ./bin/ metrsd
13+ RUN cargo chef prepare --recipe-path recipe.json --bin metrsd
1414
1515# stage 2 - Cook our dependencies
16- FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 as cacher
16+ FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 AS cacher
1717
1818WORKDIR /app
1919COPY --from=planner /usr/local/cargo/bin/cargo-chef /usr/local/cargo/bin/cargo-chef
@@ -24,7 +24,7 @@ RUN export ARCH=$(uname -m) \
2424 && cargo chef cook --release --target=$ARCH-unknown-linux-musl --recipe-path recipe.json --bin metrsd
2525
2626# stage 3 - Build our project
27- FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 as builder
27+ FROM --platform=$BUILDPLATFORM rust:1.96.0-alpine3.23 AS builder
2828
2929# # Build our metrs daemon binary
3030WORKDIR /app
@@ -48,8 +48,8 @@ FROM --platform=$BUILDPLATFORM scratch
4848# # Copy the binary
4949COPY --from=builder /bin/metrsd /bin/metrsd
5050
51- LABEL org.opencontainers.image.source https://github.com/next-hat/metrs
52- LABEL org.opencontainers.image.description Metrics Emitter
51+ LABEL org.opencontainers.image.source= " https://github.com/next-hat/metrs"
52+ LABEL org.opencontainers.image.description= " Metrics Emitter"
5353
5454# # Set entrypoint
5555ENTRYPOINT ["/bin/metrsd" ]
0 commit comments