forked from ADORSYS-GIS/e2e-banking-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: used multistage to build the app (ADORSYS-GIS#57)
- Loading branch information
1 parent
1c36013
commit 0ba5bd7
Showing
1 changed file
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |