Alpine+go combination doesn't resolve DNS correctly under docker compose environment

This commit is contained in:
Lubor Nosek
2023-05-30 08:30:24 +02:00
parent 02f3e6a1e2
commit 89e01e065c

View File

@@ -32,7 +32,7 @@ RUN cat /go/src/github.com/kerberos-io/agent/machinery/version
RUN cd /go/src/github.com/kerberos-io/agent/machinery && \
go mod download && \
go build -tags timetzdata --ldflags '-s -w -extldflags "-static -latomic"' main.go && \
go build -tags timetzdata,netgo --ldflags '-s -w -extldflags "-static -latomic"' main.go && \
mkdir -p /agent && \
mv main /agent && \
mv version /agent && \