TUN-8118: Disable FIPS module to build with go-boring without CGO_ENABLED

This commit is contained in:
chungthuang
2024-01-08 10:34:40 +00:00
committed by Chung-Ting
parent 159fcb44ce
commit e23d928829
8 changed files with 23 additions and 13 deletions

View File

@@ -8,8 +8,12 @@ WORKDIR /go/src/github.com/cloudflare/cloudflared/
# copy our sources into the builder image
COPY . .
RUN .teamcity/install-cloudflare-go.sh
RUN PATH="/go/src/github.com/cloudflare/cloudflared/go/bin:$PATH" go env
# compile cloudflared
RUN GOOS=linux GOARCH=amd64 make cloudflared
RUN GOOS=linux GOARCH=amd64 PATH="/go/src/github.com/cloudflare/cloudflared/go/bin:$PATH" make cloudflared
# use a distroless base image with glibc
FROM gcr.io/distroless/base-debian11:nonroot