File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,22 +2,23 @@ ARG BASE_IMAGE=alpine
22
33FROM --platform=$BUILDPLATFORM tonistiigi/xx AS xx
44
5- FROM --platform=$BUILDPLATFORM golang:1.20.3-alpine3.16 AS builder
5+ FROM --platform=$BUILDPLATFORM golang:1.20.3 AS builder
66
7- RUN apk add --no-cache --update alpine-sdk ca-certificates openssl clang lld
7+ # RUN apk add --no-cache --update alpine-sdk ca-certificates openssl clang lld
8+ RUN apt-get update && apt-get install -y clang lld pkg-config
89
910COPY --from=xx / /
1011
1112ARG TARGETPLATFORM
1213
13- RUN CC=$(xx-info)-gcc
14- RUN xx-go --wrap
14+ RUN CC=$(xx-info)-gcc xx-go --wrap
1515
1616# gcc is only installed for libgcc
17- RUN xx-apk --update --no-cache add musl-dev gcc
17+ # RUN xx-apk --update --no-cache add musl-dev gcc
18+ RUN xx-apt-get install -y gcc xx-c-essentials
1819
1920# lld has issues building static binaries for ppc so prefer ld for it
20- RUN [ "$(xx-info arch)" != "ppc64le" ] || XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
21+ # RUN [ "$(xx-info arch)" != "ppc64le" ] || XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
2122
2223WORKDIR /usr/local/src/dex
2324
You can’t perform that action at this time.
0 commit comments