Skip to content

Commit

Permalink
fix: adjust copy path in cross build file
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Nov 15, 2024
1 parent 2a0accc commit 0671f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cross.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This image is meant to enable cross-architecture builds.
# It assumes the binary has already been compiled for `$TARGETPLATFORM` and is
# locatable in `./target/$TARGETARCH/$BINARY`.
# locatable in `./dist/bin/$TARGETARCH/$BINARY`.

FROM --platform=$TARGETPLATFORM ubuntu:22.04

Expand All @@ -13,6 +13,6 @@ ARG TARGETARCH
# Should be set by the caller
ARG BINARY

COPY ./target/$TARGETARCH/$BINARY /usr/local/bin/$BINARY
COPY ./dist/bin/$TARGETARCH/$BINARY /usr/local/bin/$BINARY

ENTRYPOINT ["/usr/local/bin/$BINARY"]

0 comments on commit 0671f11

Please sign in to comment.