Skip to content

Commit

Permalink
fix: include target platform arg
Browse files Browse the repository at this point in the history
  • Loading branch information
laktek committed Jan 31, 2023
1 parent 24d1b59 commit 208926e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# syntax=docker/dockerfile:1.4
FROM rust:1.67.0-bullseye as builder
ARG TARGETPLATFORM
WORKDIR /usr/src/edge-runtime
RUN --mount=type=cache,target=/usr/local/cargo/registry \
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM} \
cargo install cargo-strip
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/usr/target \
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM} --mount=type=cache,target=/usr/target,id=${TARGETPLATFORM} \
cargo build --release --target-dir /usr/target && \
cargo strip

Expand Down

0 comments on commit 208926e

Please sign in to comment.