BallBot/Dockerfile
Wyatt J. Miller 8f00d4ec4c
All checks were successful
build / docker (push) Successful in 14m57s
modified dockerfile again
updated rust version, added RUN command that installs openssl
2024-11-10 15:39:42 -05:00

18 lines
353 B
Docker

# Build stage
FROM rust:1.82 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
RUN apt update -q
RUN apt install openssl -y -q
COPY --from=builder /usr/src/app/target/release/ball-bot .
CMD ["./ball-bot"]