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