adding docker push support again to Make and fixed a go vet nit

This commit is contained in:
zach rice committed 2019-12-17 20:44:20 -05:00
1 parent 648a7ba577
commit 4f0c9dcede
3 files changed
+45 -40

No files matched your search

+2 -1
View File
@@ -1,7 +1,8 @@
FROM golang:1.13.4 AS build
WORKDIR /go/src/github.com/zricethezav/gitleaks
ARG ldflags
COPY . .
RUN GO111MODULE=on CGO_ENABLED=0 go build -o bin/gitleaks *.go
RUN GO111MODULE=on CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X="${ldflags} *.go
FROM alpine:3.10
RUN apk add --no-cache bash git openssh