BallBot/Dockerfile
Wyatt J. Miller d865849426
All checks were successful
build / docker (push) Successful in 12m42s
modified dockerfile
2024-11-10 13:30:21 -05:00

16 lines
305 B
Docker

# 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/ball-bot .
CMD ["./ball-bot"]