mirror of
https://github.com/kerberos-io/agent.git
synced 2026-08-23 15:08:32 +00:00
Refactor Dockerfile to remove CGO_ENABLED=0 from build command, simplifying the build process for the agent.
This commit is contained in:
@@ -36,7 +36,7 @@ ENV TAGS="timetzdata netgo osusergo"
|
||||
ENV LDFLAGS="-s -w -extldflags '-static -latomic'"
|
||||
RUN cd /go/src/github.com/kerberos-io/agent/machinery && \
|
||||
go mod download && \
|
||||
CGO_ENABLED=0 go build -tags "$TAGS" -ldflags "$LDFLAGS" -trimpath main.go && \
|
||||
go build -tags "$TAGS" -ldflags "$LDFLAGS" -trimpath main.go && \
|
||||
mkdir -p /agent && \
|
||||
mv main /agent && \
|
||||
mv version /agent && \
|
||||
|
||||
Reference in New Issue
Block a user