From bcdb2541d8f4a4da5843ccd56854b99d1f5fb614 Mon Sep 17 00:00:00 2001 From: Julian van Dijk Date: Fri, 6 Dec 2024 00:11:51 +0100 Subject: [PATCH] missing binary --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ea2bd82..8fdac73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,13 @@ FROM rust:latest AS builder -WORKDIR /usr/src/JollyFellow -COPY . . +WORKDIR /app +COPY ./Cargo.toml ./Cargo.lock ./ +COPY ./src ./src RUN cargo build --release -RUN mv ./target/release/JollyFellow /usr/src/JollyFellow +RUN mv ./target/release/JollyFellow ./app FROM rust:1-alpine3.20 -COPY --from=builder /usr/src/JollyFellow/JollyFellow /usr/local/bin/JollyFellow -CMD ["/usr/local/bin/JollyFellow"] \ No newline at end of file +WORKDIR /app +COPY --from=builder /app/app /usr/local/bin/ +CMD ["/usr/local/bin/app"] \ No newline at end of file