From 8f00d4ec4c1cfa49762936729036483b3e41319b Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sun, 10 Nov 2024 15:39:42 -0500 Subject: [PATCH] modified dockerfile again updated rust version, added RUN command that installs openssl --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d2eb7f2..ed2af8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ # Build stage -FROM rust:1.75 as builder +FROM rust:1.82 as builder WORKDIR /usr/src/app COPY . . -RUN apt install openssl -y -q RUN cargo build --release # Test stage @@ -12,5 +11,7 @@ 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"]