add: dockerfile and deploy command

This commit is contained in:
2025-10-15 21:23:22 -07:00
committed by charles
parent 92c8e56f24
commit 1dfdff35c3
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"]