add: dockerfile and deploy command

This commit is contained in:
2025-10-15 21:23:22 -07:00
parent bff9db0b68
commit 0b9ae974f3
5 changed files with 111 additions and 1 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
# Build Stage
FROM rust:latest AS builder
WORKDIR /app
COPY . .
RUN cargo build --release
# Runtime Stage
FROM debian:stable-slim
WORKDIR /app
COPY --from=builder /app/target/release/handler .
CMD ["./handler"]