Skip to content

Commit 7964b62

Browse files
authored
chore: add platform in build
1 parent bf558b2 commit 7964b62

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM rust:1.80-bookworm as builder
1+
FROM --platform=linux/amd64 rust:1.80-bookworm as builder
22

33
WORKDIR /app
44

55
COPY . .
66

77
RUN cargo build --release
88

9-
FROM rust:1.80-bookworm as runtime
9+
FROM --platform=linux/amd64 rust:1.80-bookworm as runtime
1010

1111
COPY --from=builder /app/target/release/pembantu_telegram .
1212

13-
CMD ["./pembantu_telegram"]
13+
CMD ["./pembantu_telegram"]

0 commit comments

Comments
 (0)