add: dockerfile and deploy command
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user