From 40c360c9f06445f97278f34f6ecee3360ecfaa19 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 15 Sep 2025 20:06:40 +0100 Subject: =?UTF-8?q?=F0=9F=8F=97=EF=B8=8Fbuild:=20add=20Containerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Containerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..046c339 --- /dev/null +++ b/Containerfile @@ -0,0 +1,15 @@ +# Build stage +FROM rust:1.89-alpine3.22 as builder + +RUN apk add --no-cache musl-dev + +WORKDIR /usr/src/app +COPY . . +RUN cargo build --release + +# Run stage +FROM alpine:3.22 + +COPY --from=builder /usr/src/app/target/release/sbm-rs /usr/local/bin/ + +ENTRYPOINT ["sbm-rs"] -- cgit v1.2.3