Skip to content

Commit 10b7aae

Browse files
committed
build: try debian based go image
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
1 parent badca04 commit 10b7aae

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,23 @@ ARG BASE_IMAGE=alpine
22

33
FROM --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

910
COPY --from=xx / /
1011

1112
ARG 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

2223
WORKDIR /usr/local/src/dex
2324

0 commit comments

Comments
 (0)