added dockerfile
Some checks failed
build / docker (push) Failing after 8m40s

This commit is contained in:
Wyatt J. Miller 2024-11-10 13:11:07 -05:00
parent 2d8cbfa529
commit 1e437ea3a1

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
# Build stage
FROM rust:1.75 as builder
WORKDIR /usr/src/app
COPY . .
RUN cargo build --release
# Test stage
FROM builder as test
RUN cargo test
# Production stage
FROM debian:bookworm-slim as production
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/target/release/ballbot .
CMD ["./ballbot"]