We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10511bf commit 8dfdfaaCopy full SHA for 8dfdfaa
9 files changed
Dockerfile
@@ -3,7 +3,7 @@ WORKDIR /go/src/github.com/verloop/nsync
3
ADD . /go/src/github.com/verloop/nsync
4
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
5
RUN dep ensure
6
-RUN go install .
+RUN CGO_ENABLED=0 go build -ldflags "-s" -a -installsuffix cgo -o /go/bin/nsync .
7
8
FROM gcr.io/distroless/base
9
COPY --from=build /go/bin/nsync /
0 commit comments