Specify build platform for Docker ARM builds
This commit is contained in:
parent
c844655c98
commit
b6134a39d0
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
####################################################################################################
|
||||
## Builder
|
||||
####################################################################################################
|
||||
FROM rust:latest AS builder
|
||||
FROM --platform=$BUILDPLATFORM rust:latest AS builder
|
||||
|
||||
WORKDIR /usr/src/libreddit
|
||||
|
||||
|
@ -12,7 +12,7 @@ RUN cargo install --path .
|
|||
####################################################################################################
|
||||
## Final image
|
||||
####################################################################################################
|
||||
FROM alpine:latest
|
||||
FROM --platform=$BUILDPLATFORM alpine:latest
|
||||
|
||||
# Import ca-certificates from builder
|
||||
COPY --from=builder /usr/share/ca-certificates /usr/share/ca-certificates
|
||||
|
|
Loading…
Reference in a new issue