Skip to content

Commit

Permalink
fix(build): xcputranslate v0.7.0 usage
Browse files Browse the repository at this point in the history
- Fix cross compilation of Go binaries
- Fix #359
  • Loading branch information
qdm12 committed Sep 2, 2022
1 parent 7fcd0f9 commit d521868
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ ARG VERSION=unknown
ARG BUILD_DATE="an unknown date"
ARG COMMIT=unknown
ARG TARGETPLATFORM
RUN GOARCH="$(xcputranslate translate -targetplatform ${TARGETPLATFORM} -field arch)" \
GOARM="$(xcputranslate translate -targetplatform ${TARGETPLATFORM} -field arm)" \
RUN xcputranslate translate -setenv -targetplatform ${TARGETPLATFORM} -language golang && \
go build -trimpath -ldflags="-s -w \
-X 'main.version=$VERSION' \
-X 'main.buildDate=$BUILD_DATE' \
Expand Down

0 comments on commit d521868

Please sign in to comment.