diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-09-15 20:06:40 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-09-15 20:06:40 +0100 |
| commit | 40c360c9f06445f97278f34f6ecee3360ecfaa19 (patch) | |
| tree | 4d3e49f9d0eb539fd6390672960fdf8e7a5584b4 | |
| parent | a32fb2a9a0a467e062e6457721f6067ed868cd1e (diff) | |
🏗️build: add Containerfile
| -rw-r--r-- | Containerfile | 15 |
1 files changed, 15 insertions, 0 deletions
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"] |
