Skip to content

Commit

Permalink
build: using cross compilation in docker build (#938)
Browse files Browse the repository at this point in the history
Signed-off-by: Bin Du <bindu@microsoft.com>
  • Loading branch information
northtyphoon committed Apr 28, 2023
1 parent 103aef5 commit 776041f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM docker.io/library/golang:1.20.2-alpine as builder
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.20.2-alpine as builder
ARG TARGETPLATFORM
RUN apk add git make
ENV ORASPKG /oras
Expand Down

0 comments on commit 776041f

Please sign in to comment.