-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.card
More file actions
27 lines (18 loc) · 767 Bytes
/
Dockerfile.card
File metadata and controls
27 lines (18 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# docker build --no-cache -f Dockerfile.card -t pepitoenpeligro/cloudbanking-card .
# docker build -f Dockerfile.card -t pepitoenpeligro/cloudbanking-card .
# docker build -f Dockerfile.card -t pepitoenpeligro/cloudbanking-card .
FROM rust:1.47.0 as builder
WORKDIR /rust
RUN mkdir -p /rust/app/card/src/bankaccount_module
WORKDIR /rust/app
COPY ./card/Cargo.toml ./card
COPY ./card/.env ./card
COPY ./card/src ./card/src
COPY ./card/src/bankcard_module ./card/src/bankaccount_module
RUN cargo build --release --manifest-path=./card/Cargo.toml --bin card
FROM rust:1.47.0 as runner
COPY --from=builder /rust/app/card/target/release/card /app/card
COPY --from=builder /rust/app/card/.env ./app
EXPOSE 3030 3031 3032 3033
WORKDIR /app
CMD ["./card"]