From b40f922fc23b6d78d82e3014b1734150aab6d52c Mon Sep 17 00:00:00 2001 From: Julian van Dijk Date: Thu, 5 Dec 2024 23:39:26 +0100 Subject: [PATCH] change dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2767ba0..95b9f7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ FROM rust:latest AS builder WORKDIR /usr/src/JollyFellow COPY . . -RUN cargo install --path . +RUN cargo build --release +RUN mv ./target/release/JollyFellow . FROM rust:1-alpine3.20 -COPY --from=builder /usr/local/cargo/bin/JollyFellow /usr/local/bin/JollyFellow -CMD ["JollyFellow"] \ No newline at end of file +COPY --from=builder /usr/src/JollyFellow/JollyFellow /usr/local/bin/JollyFellow +CMD ["/usr/local/bin/JollyFellow"] \ No newline at end of file