Skip to content

Commit

Permalink
chore: dockerfile with platform
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Jul 22, 2024
1 parent 6b45ddb commit 92e1211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM rust:1.75-bookworm as builder
FROM --platform=$BUILDPLATFORM rust:1.75-bookworm as builder
WORKDIR /app
RUN rustup override set nightly
COPY . .
RUN cargo build --release

FROM debian:bookworm-slim
FROM --platform=$BUILDPLATFORM debian:bookworm-slim
LABEL org.opencontainers.image.authors "yinheli"
LABEL org.opencontainers.image.source https://github.com/yinheli/kungfu
RUN apt-get update && \
Expand Down

0 comments on commit 92e1211

Please sign in to comment.