Skip to content

Commit

Permalink
change dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian van Dijk committed Dec 5, 2024
1 parent f8cf8e4 commit b40f922
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
COPY --from=builder /usr/src/JollyFellow/JollyFellow /usr/local/bin/JollyFellow
CMD ["/usr/local/bin/JollyFellow"]

0 comments on commit b40f922

Please sign in to comment.