Skip to content

Commit

Permalink
missing binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian van Dijk committed Dec 5, 2024
1 parent 0cead3b commit bcdb254
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
WORKDIR /app
COPY --from=builder /app/app /usr/local/bin/
CMD ["/usr/local/bin/app"]

0 comments on commit bcdb254

Please sign in to comment.