Skip to content

Commit

Permalink
feat: used multistage to build the app (ADORSYS-GIS#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-segning authored and Christiantyemele committed Apr 9, 2024
1 parent ea1924c commit b7ab595
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion power-pay-translator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
FROM rust
FROM rust as base

WORKDIR /app

FROM base as builder

# Copy the Cargo.toml and Cargo.lock files to cache dependencies
COPY ./ ./

# Build the dependencies
RUN cargo build --release

FROM base

WORKDIR /app

COPY --from=builder /app/target/release/power-pay-translator /app/power-pay-translator

CMD ["/app/power-pay-translator"]

0 comments on commit b7ab595

Please sign in to comment.